フィルターのクリア

Trouble plotting a 3D meshgrid

1 回表示 (過去 30 日間)
Olivia Rose
Olivia Rose 2022 年 4 月 14 日
編集済み: Olivia Rose 2022 年 4 月 14 日
I need to plot a 3D surface plot using a meshgrid, but it keeps saying not enough input arguements?
x=[-4:1:4]; y=[-3:1:3];
z=sqrt((x.^2/4)+2*sin.^2*(0.7*y));
mesh(x,y,z)

採用された回答

Dyuman Joshi
Dyuman Joshi 2022 年 4 月 14 日
[x,y]=meshgrid(-4:0.1:4,-3:0.1:3); %Making the difference smaller to get a smoother mesh
z=sqrt((x.^2/4)+2*sin(0.7*y).^2);
mesh(x,y,z)

その他の回答 (0 件)

カテゴリ

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

タグ

製品


リリース

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by