using $\textit{w}$ in legend

1 回表示 (過去 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 Center および File ExchangeLegend についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by