[求助]关于matlab画图
<P>下面的程序是关于曲线的画图的....<BR>clear<BR><BR>z=0;<BR>Ny=100; <BR>x=linspace(0,30,Ny);<BR>Npoint=100;<BR>v=linspace(0,2*pi,Npoint);</P><P>for k=1:Ny <BR> A=1; <BR> A1=0.5*v*A;<BR> W=2*pi.*v;<BR> I=1+A.*cos(W*x(k)); <BR> I1=1+A1.*cos(W*x(k)+z);<BR> V1=(max(I1)-min(I1))/(max(I1)+min(I1));<BR> V=(max(I)-min(I))/(max(I)+min(I));<BR> M(k)=V1/V;<BR>end<BR>subplot(3,1,1), plot(x,I);grid; <BR>subplot(3,1,2), plot(x,I1);grid;<BR>subplot(3,1,3), plot(v,M);grid;<BR>运行以后,前两个图是正确的....<BR>但最后一个图是错的....<BR>因为看函数明显是值域在(0,1)之间的曲线...<BR>请求高手应该怎样解决?</P> 顶一下....<BR>希望高手来帮助....
页:
[1]