필터 지우기
필터 지우기

Latex Font in MATLAB

조회 수: 9 (최근 30일)
Shubhangi Gurudiwan
Shubhangi Gurudiwan 2024년 2월 9일
댓글: 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