Contourf matrix plot contour

1 visualización (últimos 30 días)
Mehdi
Mehdi el 30 de Sept. de 2013
Comentada: Walter Roberson el 4 de Oct. de 2013
I have written a code to graph contours of a matrix in 2D. However, although i have values of MY2 <10, when it is plotted there is a white area for MY2<10. Would you please help me with this. I have checked this several times and it seems to be alright!
All required files have been attached in a ZIP file.
Files can be downloaded from the following link
  1 comentario
Walter Roberson
Walter Roberson el 30 de Sept. de 2013
Your zip files did not appear to get attached.
Please show the contourf() call you use.

Iniciar sesión para comentar.

Respuestas (2)

Walter Roberson
Walter Roberson el 1 de Oct. de 2013
The call
[C,M]=contourf(MX2,MY2,MR2,10);
requests that 10 contour levels be used, not a single contour level at value 10. To use a single contour level at value 10, code
[C, M] = contourf(MX2, MY2, MR2, [10 10]);
  1 comentario
Mehdi
Mehdi el 1 de Oct. de 2013
Editada: Mehdi el 1 de Oct. de 2013
Thanks i will try your suggestion now. But I meant to have the contour values of MR2, MV2 and MU2 when MY2=10 or less. Currently the region with MY2<10 has no contour of MR2, MV2 or MU2 and is solid white.

Iniciar sesión para comentar.


Mehdi
Mehdi el 4 de Oct. de 2013
Any help is highly appreciated
  1 comentario
Walter Roberson
Walter Roberson el 4 de Oct. de 2013
Why not use logical indexing to find the cut-plane for MY2 being 10, and applying that logical index to MX2, MY2, MR2, and contourf() the result ?

Iniciar sesión para comentar.

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