Help with plotting an information grid
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Sushmit
el 14 de Abr. de 2014
Respondida: Andrew Newell
el 14 de Abr. de 2014
I have a n x n matrix, all of whose elements are either 0,1,2,3 or 4. Now I want to represent this matrix in the form of a n x n grid such that each block(cell) of the grid is colored according to the corresponding element in the matrix(say 0- white, 1 -red, 2- blue and so on). How do I do this?
0 comentarios
Respuesta aceptada
Más respuestas (0)
Ver también
Categorías
Más información sobre Line Plots 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!