Help with MESH command

11 ビュー (過去 30 日間)
Janez Novak
Janez Novak 2015 年 11 月 16 日
コメント済み: Janez Novak 2015 年 11 月 17 日
Im trying to write a space with this equations, but i don´t know how to use mesh properly. Please for little help, im new in matlab.
r=linspace(0,1,30)
theta=linspace(0,2*pi,30)
x=r.*cos(theta)
y=r.*sin(theta)
z=r

採用された回答

Mike Garrity
Mike Garrity 2015 年 11 月 16 日
Did you mean something like this?
[r,theta] = meshgrid(linspace(0,1,30),linspace(0,2*pi,30));
x = r.*cos(theta);
y = r.*sin(theta);
z = r;
mesh(x,y,z)
  1 件のコメント
Janez Novak
Janez Novak 2015 年 11 月 17 日
yes this is exactly what i mean thanks a lot

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

その他の回答 (0 件)

カテゴリ

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

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by