overlapping two contours and defining specific lines to be compared

4 vues (au cours des 30 derniers jours)
Roya Rajabi
Roya Rajabi le 14 Avr 2021
Commenté : Star Strider le 16 Avr 2021
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

Réponse acceptée

Star Strider
Star Strider le 14 Avr 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. .

Plus de réponses (0)

Catégories

En savoir plus sur Contour Plots dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by