sketch cone in matlab

4 ビュー (過去 30 日間)
john
john 2022 年 8 月 31 日
回答済み: KSSV 2022 年 8 月 31 日
Sketch in MATLAB the 3D surface of the cone (z −1)^2 = x^2 + y^2

回答 (1 件)

KSSV
KSSV 2022 年 8 月 31 日
t = linspace(0,2*pi,50) ;
r = linspace(0,3,50) ;
[th r] = meshgrid(t,r) ;
x = r.*cos(th) ;
y = r.*sin(th) ;
z = r ;
surf(x,y,z) ;

カテゴリ

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

製品


リリース

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by