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

28 views (last 30 days)
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?

Accepted Answer

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

More Answers (0)

Categories

Find more on Environment and Settings in Help Center and File Exchange

Products

Community Treasure Hunt

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

Start Hunting!