[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Confused about a basic plot
From: |
Jordi Gutiérrez Hermoso |
Subject: |
Re: Confused about a basic plot |
Date: |
Fri, 19 Oct 2012 11:27:14 -0400 |
On 19 October 2012 11:05, gregdmoney <address@hidden> wrote:
> I have some basic data that I would like to plot but I'm confused about
> octaves format. I have a matrix like :
> [15 468 72
> 23 469 48
> 31 470 168]
>
> I would like to plot it in an x, y, z format so for the first line x=15,
> y=468, z=72.
That's not a line, that's a point. You want to plot 3 points? Do you
want to connect those 3 points? If so, try this:
graphics_toolkit fltk;
x = [15 468 72
23 469 48
31 470 168];
plot3(x(:,1), x(:,2), x(:,3));
HTH,
- Jordi G. H.