Latex Font in MATLAB

9 次查看(过去 30 天)
Shubhangi Gurudiwan
评论: VBBV 2024-2-10
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}}$

采纳的回答

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

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Legend 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by