help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Need quick start on plotting 3D points


From: Doug Stewart
Subject: Re: Need quick start on plotting 3D points
Date: Thu, 7 Jan 2016 19:32:48 -0500



On Thu, Jan 7, 2016 at 5:18 PM, Bob001 <address@hidden> wrote:
Thanks for the reply. My datafile is in ascii text format, three numbers per
line, x y and z, separated with commas, but as I mentioned in my previous
post, I can reformat the file as necessary. I'm generating it from some
other software, and I can customize the output to suit.

At the moment, I have about 500 data points, and so I need to keep the
plotted symbols as small as possible.

After reading as much documentation as I can find, I still don't understand
how to read the datafile into an array or plot directly from the file. I
can't even find 'file' or 'datafile' in the index. All of the examples seem
to be about plotting functions, not discrete data points from an external
source.

For a bit of background, in my data, there is strong correlation between
variables x and z. I'm trying to determine whether there is also any
significant correlation between y and z. I thought that a 3D plot would help
me to visualize the relationship, if any.



Did you try the load function?
help load

p=load filename
will read the data into p

p(:,1) will be the first col.
P(:,2)  second etc.

so if you want to you could do:
x=p(:,1);
y=p(:,2);
z=p(:,3);

plot3d(x,y,z)


let me know if you want more help.




 
DAS


reply via email to

[Prev in Thread] Current Thread [Next in Thread]