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

28 visualizzazioni (ultimi 30 giorni)
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?

Risposta accettata

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

Più risposte (0)

Categorie

Scopri di più su Environment and Settings in Help Center e File Exchange

Prodotti

Community Treasure Hunt

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

Start Hunting!

Translated by