Re: Help on plot of collected sample data



Hi Michael and Duane,

Thanks for your help! I am sorry that I didn't
express what I want clearly. If I have a vector Y
whose length is M and plot(Y) gives one curve. That
is one set of sample data at time T0. Now we have the
sample data at T0...Tn. If I use a MxN matrix and
plot the figure, all N curves are stacked together.
Since the data was collected at different time, I want
them separate along one axis. I can?t use surf( ) function
because there should be no surface connection between
each curve.

I may make it even more confuse. In fact what I want
iss as follows:
Plot(rand(10,5)) gives 5 curves at X-Y plane. Now
I want to separate the 5 curves along the Z axis. Curve 1
is plotted on Z=0, curve 1 is plotted on Z=1,? and curve 5
is plotted on Z=5.

I thought it should be some function avaliable
in MATLAB, but after searching I didn't find it.


Thanks a lot for your help!

Regards,

Tao



Duane Bozarth wrote:
>
>
> tsong wrote:
>>
>> Hi,
>>
>> I have a matrix(MxN). The N columns of data
>> were collected with a constant time interval.
>> At each time number of M samples were collected.
>> If I use plot() function all the N curves were
>> stacked together. Is it possible to get a 3D
>> plot to show the collected data at each time?
>>
>
> Not sure I follow what you're asking for, but if interpret
> correctly,
> don't you simply want to plot the matrix transposed?
>
> plot(y) plots the columns of y against the index of number of rows
> but
> in your case the data are arranged by row instead of by column.
> Transpose them and voila!
>
> Of course, I could be totally off base of what you're really
> asking...
>
.



Relevant Pages

  • Re: question about multiple plotting
    ... now I just want to plot all 18 curves in one graph. ... however when cramming 18 curves into one ... Then just remove the "o" from the plot command above. ... The results will be similar to plot, except that an automatic legend ...
    (comp.soft-sys.matlab)
  • Help for parsing data
    ... How would I plot that using Gnuplot 4.2.3? ... set datafile separator "," ... I suppose my main problem is, that I have the data for two curves in ...
    (comp.graphics.apps.gnuplot)
  • Re: Exploring Plot along Y - Axis
    ... I have a plot with two subplots arrange in 2 rows and 1 column ... Top subplot has two curves and bottom subplot has three ... move the verticle line along X-axis. ...
    (comp.soft-sys.matlab)
  • Re: Exploring Plot along Y - Axis
    ... I have a plot with two subplots arrange in 2 rows and 1 column ... Top subplot has two curves and bottom subplot has three ... move the verticle line along X-axis. ...
    (comp.soft-sys.matlab)
  • Re: Subplots inside a loop
    ... >> plot a bunch of results in a four panel plot: ... I want 10 curves in each of the four subplots. ... linear linear plot. ... I do get a log log plot - so there is nothing wrong with the data ...
    (comp.soft-sys.matlab)