how to change one part of the string to NOT italic font?

8 Ansichten (letzte 30 Tage)
Kobi
Kobi am 11 Apr. 2014
Bearbeitet: Joseph Cheng am 11 Apr. 2014
i have this code:
xlhand = get(gca,'xlabel');set(xlhand,'string','string and not italic',...
'fontsize',15,'FontAngle','italic');
i need the text 'not italic' to be normal how can i do that?

Akzeptierte Antwort

Joseph Cheng
Joseph Cheng am 11 Apr. 2014
Bearbeitet: Joseph Cheng am 11 Apr. 2014
you can do something like this
>> title('this text is {\bfbold} this text is {\ititalizized}')

Weitere Antworten (0)

Kategorien

Mehr zu Characters and Strings finden Sie in Help Center und File Exchange

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by