Matlab color coded matrix
9 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
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 comentarios
Respuestas (1)
Divya Yerraguntla
el 2 de Abr. de 2020
Hi Dominic,
Have a look at a similar question : https://in.mathworks.com/matlabcentral/answers/11513-display-matrix-values-with-color-coding
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 comentarios
Ver también
Categorías
Más información sobre Colormaps en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!