Colored values for cellular automatons
1 回表示 (過去 30 日間)
古いコメントを表示
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 件のコメント
採用された回答
KALYAN ACHARJYA
2021 年 2 月 13 日
pcolor or imagese
pcolor(mat_data);
colorbar
Set the colorbar properties as per your requirements
0 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Orange についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!