MATLAB Answers

Matlab color coded matrix

12 views (last 30 days)
Dominic Eslamian
Dominic Eslamian on 26 Mar 2020
I would like to create this matrix in matlab and color code cells greather than 1.0. Frequencies as a row on top, time (hrs) column. And cells populated with data.

  0 Comments

Sign in to comment.

Answers (1)

Divya Yerraguntla
Divya Yerraguntla on 2 Apr 2020
Hi Dominic,
You could change the colormap in the code to:
colormap = [1 1 1;1 0 0]; %[W R]
as you use only 2 colors(white or red) and 2 categories of values (<1 or >1) fill the cells.
Hope it helps!

  0 Comments

Sign in to comment.

Sign in to answer this question.


Translated by