Plotting a heat map using surf function

조회 수: 21 (최근 30일)
Roohollah
Roohollah 2023년 9월 29일
댓글: Roohollah 2023년 10월 3일
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
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.
Roohollah
Roohollah 2023년 10월 3일
That's fine.
Thanks for your time and consideration

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

답변 (0개)

카테고리

Help CenterFile Exchange에서 Surface and Mesh Plots에 대해 자세히 알아보기

태그

제품


릴리스

R2023a

Community Treasure Hunt

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

Start Hunting!

Translated by