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

Nora Khaled
Nora Khaled 2021년 2월 12일
you mean print the matrix values with colored text?
Samuel Brewton
Samuel Brewton 2021년 2월 12일
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)

댓글을 달려면 로그인하십시오.

 채택된 답변

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Red에 대해 자세히 알아보기

제품

릴리스

R2019a

태그

Community Treasure Hunt

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

Start Hunting!

Translated by