Lorenzo <liquidcrystal@tiscali.it> wrote in message <26882883.1221814529235.JavaMail.jakarta@nitrogen.mathforum.org>...
> Sorry, but I couldn't run it as I couldn't "undestand" how it works.
>
> I have many variables(e.g. A1,A2,A3...) that contain, say, frequencies on the 1st column and wavelet power density on the 2nd column. So I have to plot, e.g. A1(:,1),A1(:,2) and z=0.5; A2(:,1),A2(:,2) and z=1 and so on...
> Actually I just need a command to do that for one variable and then I'll find a way to do that for al my variables automatically.
> Could You help me once again please?
> Thanx
Hi,
Walter's point is, you have to use function 'line' to make a 3D plot. The following example may help you, as it is more like in terms you are thinking:
x = 1 : 100; y = sin(.1*x);
A1=[x' y'+1];
A2=[x' y'+2];
A3=[x' y'+3];
A4=[x' y'+4];
s = ones(size(A1(:,1)));
close all
line(s*0.5,A1(:,1),A1(:,2))
line(s*1.0,A2(:,1),A2(:,2))
line(s*1.5,A3(:,1),A3(:,2))
line(s*2.0,A4(:,1),A4(:,2))
set(gca,'CameraPosition',[10 180 25])
Yuri
