varphi Matlab / Latex character

146 ビュー (過去 30 日間)
Bogdan Dzonlaga
Bogdan Dzonlaga 2018 年 9 月 24 日
コメント済み: Muhammad 2022 年 7 月 15 日
Hi,
Does anyone know if it is possible to use the \varphi character in a legend of a graph ? I have set my default interpreter as "tex" but still the \varphi is not printed properly.
set(groot, 'defaultAxesTickLabelInterpreter','tex'); set(groot, 'defaultLegendInterpreter','tex'); set(0, 'defaultTextInterpreter', 'tex');
legend('\varphi', 'k');
I have tried using $\varphi$, and changing the interpreter to 'latex' but without success.
Thanks in advance !
  1 件のコメント
Muhammad
Muhammad 2022 年 7 月 15 日
But how \varkappa?

サインインしてコメントする。

採用された回答

Bish Erbas
Bish Erbas 2018 年 9 月 24 日
Try
legend({'$\varphi$'},'Interpreter','latex');
  2 件のコメント
Chen
Chen 2021 年 4 月 12 日
I meet the same problem.And the code '$\varphi$' or '\varphi' can't be explained by matlab.
Chen
Chen 2021 年 4 月 12 日
It worked.thank you very much!

サインインしてコメントする。

その他の回答 (1 件)

Bogdan Dzonlaga
Bogdan Dzonlaga 2018 年 9 月 24 日
It works perfectly, thank you very much !
  1 件のコメント
Bish Erbas
Bish Erbas 2018 年 9 月 24 日
Glad to hear!

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeSequence and Numeric Feature Data Workflows についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by