Multiple plots in one figure (not subplot)

1 回表示 (過去 30 日間)
Giuditta CELLI
Giuditta CELLI 2022 年 5 月 19 日
回答済み: David Hill 2022 年 5 月 19 日
Hello, I'm new on using matlab and for now I just need to create some plots.
Do you know how to create a plot like the one in the attached figure? I know how to use subplot and to have two lines in the same plot even with two yaxis, but I'm not able to find how to create somenthing like this.
Thanks

採用された回答

David Hill
David Hill 2022 年 5 月 19 日
Look at stackedplot
tbl = readtable("patients.xls","TextType","string");
stackedplot(tbl,["Height","Weight","Systolic","Diastolic"]);

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeLine Plots についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by