我们通常用plot3画,:@)
clear all;
t=linspace(0,24.*pi,100);
y=linspace(1,3,3);
for i=1:length(y)
for j=1:length(t)
I(i,j)=sin(0.25*t(j)-pi./2*y(i));
R(i,j)=cos(0.25*t(j)-pi./2*y(i));
end
end
T=zeros(length(t),3);
Y=T;
for k=1:3,
T(:,k)=t';
Y(:,k)=k-1;
end
h1=plot3(T,Y,I','r','--');
hold on;
h2=plot3(T,Y,R','b');