《matlab怎么保存代码》 如何用matlab画双曲柱面?

如何用matlab画双曲柱面?
a = 1;
b = 1;
h = 10;
tht = linspace(-pi/4,pi/4,100);
z = linspace(0,h,20);
x = a*sec(tht);
【《matlab怎么保存代码》 如何用matlab画双曲柱面?】y = b*tan(tht);
xa = repmat(x,20,1);
ya = repmat(y,20,1);
za = repmat(z',1,100);
figure; surf(xa,ya,za);