Plotting a heat map using surf function
20 次查看(过去 30 天)
显示 更早的评论
I have a 2D matrix and I want to plot a heat map. I use the following codes:
fig = surf(X,Y,F);
set(fig,'linestyle','none')
view(2)
But it displays just a plan entirely blue despite the large difference between Z values as shown in image below. How can I fix this issue?
6 个评论
Dyuman Joshi
2023-10-2
I ran the code again and plotted some data tips, and the output is still different from what you got.
Check the image attached.
回答(0 个)
另请参阅
类别
在 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!