Re: Help on plot of collected sample data
- From: tsong <tsong@xxxxxxxx>
- Date: Wed, 28 Sep 2005 20:21:14 -0400
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...
>
.
- Follow-Ups:
- Re: Help on plot of collected sample data
- From: Duane Bozarth
- Re: Help on plot of collected sample data
- References:
- Help on plot of collected sample data
- From: tsong
- Help on plot of collected sample data
- Prev by Date: Re: need to plot more than 13 symbols
- Next by Date: Re: Help on plot of collected sample data
- Previous by thread: Help on plot of collected sample data
- Next by thread: Re: Help on plot of collected sample data
- Index(es):
Relevant Pages
|