Adapting a paraboloid code

7 次查看(过去 30 天)
Jonathan Bird
Jonathan Bird 2018-4-12
I found the following code to plot a paraboloid but now I need to adapt it to change the base radius and height, thanks
[r,the]=meshgrid([0:0.1:5],[0:pi/10:2*pi]);
x1=r.*cos(the);
y1=r.*sin(the);
z1=x1.^2+y1.^2;
surf(x1,y1,z1)

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Geology 的更多信息

标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by