필터 지우기
필터 지우기

display colored output in command window

조회 수: 5 (최근 30일)
Sivakumaran Chandrasekaran
Sivakumaran Chandrasekaran 2012년 3월 27일
편집: DGM 2024년 6월 19일
Can the numbers be displayed in command window in some colors. I mean ... 1 should be displayed in red color and 2 should be displayed in blue color.
Regards, Siva
Edit [27 Mar 2012, 08:25 BST - OK] Erased email address.

답변 (1개)

Oleg Komarov
Oleg Komarov 2012년 3월 27일
You can use this submission from the FEX: cprintf
Edit
An example with cprintf:
A = [5 6; 9 10];
cprintf('cyan' , '%3.0f' ,A(1));
cprintf('Magenta' , '%3.0f \n',A(3));
cprintf('blue' , '%3.0f' ,A(2));
cprintf('green' , '%3.0f \n',A(4));
  댓글 수: 3
Oleg Komarov
Oleg Komarov 2012년 3월 27일
It's a submission of the FEX. Follow the link.
Sivakumaran Chandrasekaran
Sivakumaran Chandrasekaran 2012년 3월 28일
편집: DGM 2024년 6월 19일
Hi,
I checked the link. Thanks for your help.
Regards, Siva

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

카테고리

Help CenterFile Exchange에서 Environment and Settings에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by