MATLAB Answers

How to simultaneously bold and italic the label of matlab? Especially for label interpreted by latex.

128 views (last 30 days)
xinghua liu on 21 Nov 2018
Commented: xinghua liu on 21 Nov 2018
I have tried the \bf\it, but the label presents only Italic effect. Hope someone can solve my question!
2 CommentsShowHide 1 older comment
xinghua liu on 21 Nov 2018
Thanks for your attention! I have solved this problem. The matlab code is attatched below.
"zlabel('$p(\textbf{\emph z}^A_1|\textbf{\emph p})$','interpreter', 'latex')"
The expected figure is also uploaded.

Sign in to comment.

Answers (1)

Jan on 21 Nov 2018
Edited: Jan on 21 Nov 2018
If you mean the X-lable of an axes, this works in the current version:
xlabel('\it{\bf{bold+cursive}} \it{Only cursive}')
or
xlabel('normal \it\bf{bold+cursive}')
ylabel('normal \it\bfbold+cursive')
1 CommentShowHide None
xinghua liu on 21 Nov 2018
Thanks for your attention! My problem has been solved. Please see my comments!

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!

Translated by