Effacer les filtres
Effacer les filtres

Latex Font in MATLAB

9 vues (au cours des 30 derniers jours)
Shubhangi Gurudiwan
Shubhangi Gurudiwan le 9 Fév 2024
Commenté : VBBV le 10 Fév 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}}$

Réponse acceptée

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

Connectez-vous pour commenter.

Plus de réponses (0)

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by