using heatmap of a nxm matrix for outlier detection

4 views (last 30 days)
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.

Accepted Answer

Image Analyst
Image Analyst on 23 Oct 2022
I think you mean "colormap" rather than "heatmap". Try this:
>> colormapeditor
  2 Comments
Alvin Stroyny
Alvin Stroyny on 26 Oct 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?

Sign in to comment.

More Answers (0)

Categories

Find more on Data Distribution Plots in Help Center and File Exchange

Products


Release

R2022b

Community Treasure Hunt

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

Start Hunting!