How to extrapolate a level curve form a 3D plot of a 2-variables function?

3 ビュー (過去 30 日間)
Giuseppe
Giuseppe 2021 年 6 月 19 日
編集済み: Matt J 2021 年 6 月 19 日
Hi guys! I've a plot of a 3D function of 2 variables and I'm interested into extrapolating the curve that corresponds to CM=0 and the I want to plot this level curve in another figure.
Here there is the code used to obtain the plot:
figure(3);
CM_plot=reshape(CM,[length(Alfa),length(Mach)]);
surf(Mach,Alfa,CM_plot);
xlabel('$M$','Interpreter','Latex','Fontsize',15 ,'FontAngle','italic');
ylabel('$\alpha$ $(deg)$','Interpreter','Latex','Fontsize',15 ,'FontAngle','italic');
zlabel('$C_{M}$','Interpreter','Latex','Fontsize',15 ,'FontAngle','italic')
set(gca,'YDir','reverse')
set(get(gca,'ZLabel'),'Rotation',0,'Position',[0.6 -22.5 0.115]);
view([-114.52 20.44]);
Can you hep me?

採用された回答

Matt J
Matt J 2021 年 6 月 19 日
編集済み: Matt J 2021 年 6 月 19 日
Youc an just use contour().
contour(Mach,Alfa,CM_plot,0);

その他の回答 (0 件)

カテゴリ

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

製品


リリース

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by