Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
How to change text colour on Command Window

Subject: How to change text colour on Command Window

From: M.Norhisham

Date: 28 Jan, 2009 11:10:03

Message: 1 of 2

fprintf(2,'Based on the results of Determinant and Eigenvalues shown above "Matrix A" is not an orthogonal Matrix \n')

I wrote the above texts in M-File and I want it to be appeared in blue colour texts on Command Window when I run in.

How do I change the colour of the above texts to be any colour such as blue or green etc?

Subject: How to change text colour on Command Window

From: Geoffrey

Date: 28 Jan, 2009 11:58:02

Message: 2 of 2

I don't know if it's actually possible. I looked into this a while ago, and I believe it's only possible to give the red using an fprintf(2, and the regular black colour.

Tags for this Thread

No tags are associated with this thread.

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us