How can I plot phase diagrams in MATLAB?

133 ビュー (過去 30 日間)
Waseem AL Aqqad
Waseem AL Aqqad 2022 年 3 月 19 日
コメント済み: Waseem AL Aqqad 2022 年 3 月 21 日
Is it possible to plot phase diagrams as the attached ones using MATLAB?
Thanks!
  2 件のコメント
Waseem AL Aqqad
Waseem AL Aqqad 2022 年 3 月 19 日
Thanks DGM.

サインインしてコメントする。

採用された回答

Voss
Voss 2022 年 3 月 19 日
Here's how you might produce something similar to 2.jpg:
p = [0.13 0.26 0.42 0.52]; % adjust these points along the curve to your liking
g = [1 0.8 0.4 0 ];
patch([0 p 0],g([1 1:end end]),[246 173 203]/255);
patch(p([1:end end]),g([1:end 1]),[255 249 173]/255);
patch([p([end end]) 1 1],g([1 end end 1]),[204 231 212]/255);
line(p,g,'Color',[0 0 0],'LineWidth',1.5);
text(0.67,0.44,'Regime I','Color',[93 48 107]/255,'FontSize',14);
text(0.33,0.82,'Regime II','Color',[93 48 107]/255,'FontSize',14);
text(0.07,0.42,'Regime III','Color',[93 48 107]/255,'FontSize',14);
text(0.9,0.9,'(c)','FontSize',16);
xlabel('p');
ylabel('\gamma');
set(gca(),'FontSize',12,'FontWeight','bold','XTick',0:0.1:1,'YTick',0:0.2:1);
  3 件のコメント
Waseem AL Aqqad
Waseem AL Aqqad 2022 年 3 月 21 日
Now I see what I was missing. Thank you very much for the nice explanation.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Find more on Colormaps in Help Center and File Exchange

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by