Help with plotting an information grid
1 次查看(过去 30 天)
显示 更早的评论
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 个评论
采纳的回答
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Line Plots 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!