using $\textit{w}$ in legend

19 次查看(过去 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