MATLAB案例一

t = 0:pi/20:2pi;
[x,y] = meshgrid(t);
subplot(2,2,1)
plot(sin(t),cos(t))
axis equal
subplot(2,2,2)
z = sin(x)+cos(y);
plot(t,z)
axis([0 2
pi -2 2])
subplot(2,2,3)
z = sin(x).cos(y);
plot(t,z)
axis([0 2
pi -1 1])
subplot(2,2,4)
z = (sin(x).2)-(cos(y).2);
plot(t,z)
axis([0 2*pi -1 1])
在这里插入图片描述

猜你喜欢

转载自blog.csdn.net/m0_38127487/article/details/115033901