overlapping two contours and defining specific lines to be compared

4 visualizaciones (últimos 30 días)
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

Respuesta aceptada

Star Strider
Star Strider el 14 de Abr. de 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. .

Más respuestas (0)

Categorías

Más información sobre Contour Plots en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by