change colour of a text into blue

297 次查看(过去 30 天)
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?

采纳的回答

Mahdi
Mahdi 2013-4-1
Try doing it in one line
text(10, 0.06, 'Normal distribution', 'Color', 'b')

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 MATLAB 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by