Clear Filters
Clear Filters

Latex Font in MATLAB

9 views (last 30 days)
Shubhangi Gurudiwan
Shubhangi Gurudiwan on 9 Feb 2024
Commented: VBBV on 10 Feb 2024
Hi,
I am trying the below line to get the latex font which looks like sharp or angled v as below
However, MATLAB is giving error for this \varv
legend('$E_{\varv_{1}}$', 'Interpreter','latex')
result -
Warning: Error updating Legend.
String scalar or character vector must have valid interpreter syntax:
$E_{\varv _{1}}$

Accepted Answer

VBBV
VBBV on 10 Feb 2024
Edited: VBBV on 10 Feb 2024
xlabel('$E_{\it V_{1}}$', 'Interpreter','latex')
  2 Comments
VBBV
VBBV on 10 Feb 2024
Edited: VBBV on 10 Feb 2024
use an italic V in legend function
VBBV
VBBV on 10 Feb 2024
Hi @Shubhangi Gurudiwan The closest match for your case is to use \nu
title('$E_{\nu_{1}}$', 'Interpreter','latex','FontSize',24)

Sign in to comment.

More Answers (0)

Tags

Community Treasure Hunt

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

Start Hunting!