Azzera filtri
Azzera filtri

Latex Font in MATLAB

9 visualizzazioni (ultimi 30 giorni)
Shubhangi Gurudiwan
Shubhangi Gurudiwan il 9 Feb 2024
Commentato: VBBV il 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}}$

Risposta accettata

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

Accedi per commentare.

Più risposte (0)

Community Treasure Hunt

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

Start Hunting!

Translated by