Is it possible to print color text in the command window?

조회 수: 125 (최근 30일)
Mr M.
Mr M. 2018년 10월 17일
댓글: oded s 대략 12시간 전
Is it possible to print color text in the command window?

채택된 답변

madhan ravi
madhan ravi 2018년 10월 17일
편집: madhan ravi 2018년 10월 17일
  댓글 수: 8
oded s
oded s 대략 12시간 전
for future reader
as stated, it's possible with cprintf
but it's painfully slow ... (vs fprintf)
the cprintf takes a lot of time , for example :
>>tic ; for k = 1:1e2, cprintf('_blue', '.') ; end ; fprintf('\n') ; toc
....................................................................................................
Elapsed time is 1.819822 seconds.
>> tic ; for k = 1:1e2, fprintf(2,'.') ; end ; fprintf('\n') ; toc
....................................................................................................
Elapsed time is 0.001130 seconds.

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Annotations에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by