How to plot a cone in 3D.
200 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
obaid-ur-rehman
am 19 Apr. 2019
Beantwortet: Mayur
am 4 Mär. 2024
I want to plot a cone satisfying the equation |z| < x^(0.5)*y^(0.5) and it should look like as shown in the image. How to do this in matlab?
0 Kommentare
Akzeptierte Antwort
Nitin Phadkule
am 17 Aug. 2021
Bearbeitet: darova
am 19 Aug. 2021
[X,Y,Z]=cylinder([0 .5],50 );
axis([0 1,-1 1,-.5 .5])
M=makehgtform('translate',[0,0,0],'xrotate',pi/4,'yrotate',pi/2);
h=surf(X,Y,Z,'Parent',hgtransform('Matrix',M),'LineStyle','none','FaceAlpha',0.4);
view([30,35])
grid on
light
0 Kommentare
Weitere Antworten (1)
Mayur
am 4 Mär. 2024
Create a MATLAB program that returns 3 D plot of a cone centered at the origin with unit length using 25 equally spaced points on the x and y directions Cylinder function can be y axis centered and be used directly cylinder(y, 25)
0 Kommentare
Siehe auch
Kategorien
Mehr zu Surface and Mesh Plots finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!