How to plot a cone in 3D.

44 ビュー (過去 30 日間)
obaid-ur-rehman
obaid-ur-rehman 2019 年 4 月 19 日
編集済み: darova 2021 年 8 月 19 日
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?cone.JPG

採用された回答

Nitin Phadkule
Nitin Phadkule 2021 年 8 月 17 日
編集済み: darova 2021 年 8 月 19 日
[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 件)

Community Treasure Hunt

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

Start Hunting!

Translated by