Filter löschen
Filter löschen

Plotting a heat map using surf function

6 Ansichten (letzte 30 Tage)
Roohollah
Roohollah am 29 Sep. 2023
Kommentiert: Roohollah am 3 Okt. 2023
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 Kommentare
Dyuman Joshi
Dyuman Joshi am 2 Okt. 2023
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 am 3 Okt. 2023
That's fine.
Thanks for your time and consideration

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Tags

Produkte


Version

R2023a

Community Treasure Hunt

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

Start Hunting!

Translated by