using $\textit{w}$ in legend

조회 수: 7 (최근 30일)
Diana
Diana 2018년 1월 16일
댓글: Matt J 2018년 1월 16일
I have an existing figure that I want to use this term $\textit{w} = 0$ in its legend. I'm setting the latex interpreter using set(findall(gcf,'defaulttextInterpreter','latex ')) but I keep getting this error Warning: Unable to interpret TeX string "$\textit{w}$ = 1,k=1" any help would be appreciated.

채택된 답변

Matt J
Matt J 2018년 1월 16일
Try setting the interpreter directly,
set( legend('$\textit{w}$ = 1,k=1') , 'Interpreter','latex');
  댓글 수: 3
Matt J
Matt J 2018년 1월 16일
Diana's comment moved here:
Thanks.
Matt J
Matt J 2018년 1월 16일
You're welcome.

댓글을 달려면 로그인하십시오.

추가 답변 (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