Adapting a paraboloid code

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)

1 件のコメント

Walter Roberson
Walter Roberson 2018 年 4 月 12 日
The radii are the [0:0.1:5] values in the meshgrid()

サインインしてコメントする。

回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeCategorical Arrays についてさらに検索

タグ

質問済み:

2018 年 4 月 12 日

コメント済み:

2018 年 4 月 12 日

Community Treasure Hunt

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

Start Hunting!

Translated by