overlapping two contours and defining specific lines to be compared

5 ビュー (過去 30 日間)
Roya Rajabi
Roya Rajabi 2021 年 4 月 14 日
コメント済み: Star Strider 2021 年 4 月 16 日
Hi
I am trying to have two temperature profiles (two contours) on the same figure. But I want to define specific temperature isotherm for example for both I want temperature 18 C to be shown to see where they are and compare them.
I am wondering if anyone has any idea about that.
I would appreciate it if you help me.
Regrads,
Roya

採用された回答

Star Strider
Star Strider 2021 年 4 月 14 日
See the contour documentation section on levels for details. To plot contours at 18°C, that would plot as:
contour(X,Y,Z, [1 1]*18)
For contours from 10°C to 20°C:
contour(X,Y,Z,10:20)
To get the (X,Y) data from the contours you want after creating them, see the documentation on contour matrix M. .
  2 件のコメント
Roya Rajabi
Roya Rajabi 2021 年 4 月 16 日
Thanks a lot
Star Strider
Star Strider 2021 年 4 月 16 日
As always, my pleasure!

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

その他の回答 (0 件)

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by