3D plot problem related to surface plot
4 次查看(过去 30 天)
显示 更早的评论
Hello
Now i want a mat like surface not this peak ,I like a just surface plot though I have used surfc command but getting this peak style image ..which command shal I use?
0 个评论
回答(1 个)
Walter Roberson
2012-10-27
I am confused about what you are looking for. See
mesh()
contour()
meshc();
surf()
3 个评论
Walter Roberson
2012-10-27
Your data has local differences that are large compared to the difference in range between the lowest and highest value, whereas the image you show as ideal has only small local differences compared to the range between the lowest and highest value.
With the relative data values you happen to have, the cost of getting rid of the peaks will be flattening out your surface plot to very nearly flat. If that is your goal, you might as well use pcolor().
If you do not want to do that, then zlimit to change the upper bound of plotting to be a number of times larger, which will have the effect of having the actual data occupy a smaller portion of the plot, with the result that the peaks will be less prominent.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Surface and Mesh Plots 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!