sketch cone in matlab

5 Ansichten (letzte 30 Tage)
john
john am 31 Aug. 2022
Beantwortet: KSSV am 31 Aug. 2022
Sketch in MATLAB the 3D surface of the cone (z −1)^2 = x^2 + y^2

Antworten (1)

KSSV
KSSV am 31 Aug. 2022
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) ;

Produkte


Version

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by