matlab如何绘制参数函数的图像?

2025-03-10 20:36:08
推荐回答(1个)
回答1:

clear;

clc;

s=0:0.1:pi/2;

t=0:0.1:3*pi/2;

[s,t]=meshgrid(s,t);

x=cos(s).*cos(t);

y=cos(s).*sin(t);

z=sin(t);

surf(x,y,z)

set(gcf,'color','w');

shading interp;

title('采纳吧');

view(-61,50);