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에서 Colormaps에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!