Contourf matrix plot contour

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

Walter Roberson
Walter Roberson 2013년 9월 30일
Your zip files did not appear to get attached.
Please show the contourf() call you use.

댓글을 달려면 로그인하십시오.

답변 (2개)

Walter Roberson
Walter Roberson 2013년 10월 1일

0 개 추천

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

Mehdi
Mehdi 2013년 10월 1일
편집: Mehdi 2013년 10월 1일
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.

댓글을 달려면 로그인하십시오.

Mehdi
Mehdi 2013년 10월 4일

0 개 추천

Any help is highly appreciated

댓글 수: 1

Walter Roberson
Walter Roberson 2013년 10월 4일
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 ?

댓글을 달려면 로그인하십시오.

카테고리

도움말 센터File Exchange에서 Contour Plots에 대해 자세히 알아보기

태그

질문:

2013년 9월 30일

댓글:

2013년 10월 4일

Community Treasure Hunt

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

Start Hunting!

Translated by