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

New to MATLAB?

change colour of a text into blue

Asked by Locks

Locks (view profile)

on 1 Apr 2013
Accepted Answer by Mahdi

Mahdi (view profile)

text(0,0.11,'Log-normal distribution')
text(10,0.06,'Normal distribution')
set(text,'Color','b')

I would like to have the 2nd row of code displayed in blue, but if I insert 'b' into the brackets, it does not with and the code above doesn't either, what do I need to change?

0 Comments

Locks

Locks (view profile)

Tags

Products

No products are associated with this question.

1 Answer

Answer by Mahdi

Mahdi (view profile)

on 1 Apr 2013
Accepted answer

Try doing it in one line

text(10, 0.06, 'Normal distribution', 'Color', 'b')

1 Comment

Locks

Locks (view profile)

on 1 Apr 2013

that's working, thanks

Mahdi

Mahdi (view profile)

Contact us