Plotting a heat map using surf function
16 ビュー (過去 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?
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1496569/image.jpeg)
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 件)
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!