overlapping two contours and defining specific lines to be compared

5 visualizzazioni (ultimi 30 giorni)
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

Risposta accettata

Star Strider
Star Strider il 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. .

Più risposte (0)

Categorie

Scopri di più su Contour Plots in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by