Filter löschen
Filter löschen

overlapping two contours and defining specific lines to be compared

5 Ansichten (letzte 30 Tage)
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

Akzeptierte Antwort

Star Strider
Star Strider am 14 Apr. 2021
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. .

Weitere Antworten (0)

Kategorien

Mehr zu Contour Plots finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by