发布网友 发布时间:2022-08-20 13:38
共1个回答
热心网友 时间:2023-11-05 16:05
a = 1;
b = 1;
h = 10;
tht = linspace(-pi/4,pi/4,100);
z = linspace(0,h,20);
x = a*sec(tht);
y = b*tan(tht);
xa = repmat(x,20,1);
ya = repmat(y,20,1);
za = repmat(z',1,100);
figure; surf(xa,ya,za);