Graph/Draw hyperboloid

8 ビュー (過去 30 日間)
Lillebror Sagmen-Andersson
Lillebror Sagmen-Andersson 2021 年 4 月 1 日
Hi! [This is a homework problem]
", , Tips: in polar corrdinates the surface of the equation is:
The result should look like this:"
We have just used surf and meshgrid to plot a cone, but I can't seem to get this hyberbolid :(
edit: This is what we have done just before;
r=linspace(0,1,21);
theta=linspace(0,2*pi,63);
k=1;
m=1/3
[R,THETA]=meshgrid(r,theta);
X=R.*cos(THETA);
Y=R.*sin(THETA);
Z=k.*(X.^2 + Y.^2).^m;
surf(X,Y,Z)
axis equal

採用された回答

Matt J
Matt J 2021 年 4 月 1 日
You might consider this very similar example, using cylinder(),
  1 件のコメント
Lillebror Sagmen-Andersson
Lillebror Sagmen-Andersson 2021 年 4 月 1 日
Thanks!

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeSurface and Mesh Plots についてさらに検索

製品


リリース

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by