using heatmap of a nxm matrix for outlier detection

4 Ansichten (letzte 30 Tage)
Alvin Stroyny
Alvin Stroyny am 23 Okt. 2022
Kommentiert: Image Analyst am 26 Okt. 2022
I have a nxm matrix of positive real values. I would like to make a heatmap with values from 1 to maximum with color white to deep red and from 1 down to zero with color white to say deep blue.

Akzeptierte Antwort

Image Analyst
Image Analyst am 23 Okt. 2022
I think you mean "colormap" rather than "heatmap". Try this:
>> colormapeditor
  2 Kommentare
Alvin Stroyny
Alvin Stroyny am 26 Okt. 2022
heatmap applies a single color gradient from white to dark (i.e. cold to hot). Instead of applying the white to the lowest values, I would like to define "room temperature" (i.e. the mean(mean(x)) ) and have say a red color gradient from white to red = room temp to hottest, and a reverse say blue gradient from white to dark blue = room temperature to coldest. I think the question is can the heatmap use a dual color gradient?
Image Analyst
Image Analyst am 26 Okt. 2022
Looks like this is the relevant page with instructions:
Follow that procedure to set up your colors with the pattern/gradients you want.

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Data Distribution Plots finden Sie in Help Center und File Exchange

Produkte


Version

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by