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 CenterFile Exchange에서 Surface 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