Borrar filtros
Borrar filtros

Latex Font in MATLAB

9 visualizaciones (últimos 30 días)
Shubhangi Gurudiwan
Shubhangi Gurudiwan el 9 de Feb. de 2024
Comentada: VBBV el 10 de Feb. de 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}}$

Respuesta aceptada

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

Iniciar sesión para comentar.

Más respuestas (0)

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by