当前位置:首页 > matlab课后习题答案 (附图)
习题
画出下列常见曲线的图形
(1)立方抛物线命令:syms x y; ezplot('x.^(1/3)')
y?3x
(2)高斯曲线y=e^(-X^2); 命令:clear syms x y; ezplot('exp(-x*x)')
(3)笛卡尔曲线
命令:>> clear >> syms x y; >> a=1;
>> ezplot(x^3+y^3-3*a*x*y)
(4)蔓叶线 命令:>> clear
>> syms x y; >> a=1
ezplot(y^2-(x^3)/(a-x))
(5)摆线:x?a?t?sint?,y?b?1?cost? (6)命令:>> clear (7)>> t=0::2*pi; (8)>> x=t-sin(t); (9)>>y=2*(1-cos(t)); (10)>> plot(x,y)
(11)
(12)7螺旋线 命令:>> clear >> t=0::2*pi; >> x=cos(t); >> y=sin(t); >> z=t; >>plot3(x,y,z)
(8)阿基米德螺线 命令:clear >> theta=0::2*pi; >> rho1=(theta);
>> subplot(1,2,1),polar(theta,rho1)
(9) 对数螺线 命令:clear theta=0::2*pi; rho1=exp(theta);
subplot(1,2,1),polar(theta,rho1)
共分享92篇相关文档