Contourf matrix plot contour
1 次查看(过去 30 天)
显示 更早的评论
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
2013-9-30
Your zip files did not appear to get attached.
Please show the contourf() call you use.
回答(2 个)
Walter Roberson
2013-10-1
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]);
Mehdi
2013-10-4
1 个评论
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 ?
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Contour Plots 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!