using heatmap of a nxm matrix for outlier detection

조회 수: 3 (최근 30일)
Alvin Stroyny
Alvin Stroyny 2022년 10월 23일
댓글: Image Analyst 2022년 10월 26일
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.

채택된 답변

Image Analyst
Image Analyst 2022년 10월 23일
I think you mean "colormap" rather than "heatmap". Try this:
>> colormapeditor
  댓글 수: 2
Alvin Stroyny
Alvin Stroyny 2022년 10월 26일
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 2022년 10월 26일
Looks like this is the relevant page with instructions:
Follow that procedure to set up your colors with the pattern/gradients you want.

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Color and Styling에 대해 자세히 알아보기

제품


릴리스

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by