这两个函数的图形如何用matlab绘制

2024-12-05 18:53:47
推荐回答(1个)
回答1:

t=linspace(-10,10,500);
x=sin(t);
y=cos(t);
z=t;
stem3(x,y,z);

x=linspace(-pi,pi,100);
y=linspace(-1,1,100);
[X,Y]=meshgrid(x,y);
Z=Y.^2.*sin(X);
mesh(X,Y,Z);