How to change the color of labels in matlab

advertisements

i want to know how to change the color of the labels, basically if you're going to plot and put labels automatically the color of the labels are black but i want to change it to different color (for example red)

example of labels:

A = {'apple'
'red'
'orange'}

so what do you think guys? thanks in advance.


Do you mean that X and Y labels?

xlabel ( 'Apple', 'Color', 'red' )