阅读背景:

matlab正余弦画心形图案

来源:互联网 
for b=0:0.08:20 
    clf;
    x=[0:0.01:1.8];
    y=x.^(2/3)+0.9*sqrt(3.3-x.^2).*sin(b.*pi.*x);
    plot(x,y,'r');
    hold on
    plot(-x,y,'r')
    plot(x*2/3,y*2/3,'b')
    plot(-x*2/3,y*2/3,'b')
    axis equal
    pause(0.0005)
    hold off
endfor b=0:0.08:20 
    clf;
    x=[0:0.01:1.8];
 



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: