Borrar filtros
Borrar filtros

Colored values for cellular automatons

3 visualizaciones (últimos 30 días)
Samuel Brewton
Samuel Brewton el 12 de Feb. de 2021
Respondida: KALYAN ACHARJYA el 13 de Feb. de 2021
I am looking for a way to display the elements of my matrix as red and blue depending on if they are a 1 or 0. I'm fairly new to Matlab so I'm not sure if there is a way to color the actual matrix output in the command window or if I would have to use something like a colormap?
  2 comentarios
Nora Khaled
Nora Khaled el 12 de Feb. de 2021
you mean print the matrix values with colored text?
Samuel Brewton
Samuel Brewton el 12 de Feb. de 2021
Yes. I've found a way to print a colored map but I was looking to also display colored text in the command window. (For collaboration reasons I cannot use cprintf)

Iniciar sesión para comentar.

Respuesta aceptada

KALYAN ACHARJYA
KALYAN ACHARJYA el 13 de Feb. de 2021
pcolor or imagese
pcolor(mat_data);
colorbar
Set the colorbar properties as per your requirements

Más respuestas (0)

Categorías

Más información sobre Colormaps en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by