Write variable label on the Y-axis of graphs

1 回表示 (過去 30 日間)
Juan Angel Tapia
Juan Angel Tapia 2022 年 11 月 16 日
コメント済み: Star Strider 2022 年 11 月 16 日
Hello!,
Can anybody help me please?
I would like to write this label in Y_axis of plot in latex: $\~ H_{H,2}^{H,1}$, or
but matlab doesn't recognize it \~
I appreciate your help please, thank you!

採用された回答

the cyclist
the cyclist 2022 年 11 月 16 日
plot(rand(3))
ylabel("$\tilde H_{H,2}^{H,1}$","Interpreter","latex")
  1 件のコメント
Juan Angel Tapia
Juan Angel Tapia 2022 年 11 月 16 日
Thank you very much @the cyclist, you are very kind!, your answer works for me, thank you!!
Greetings!

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

その他の回答 (1 件)

Star Strider
Star Strider 2022 年 11 月 16 日
Try this —
figure
plot(sort(rand(1,10)), rand(1,10), '-p')
ylabel('$\tilde{H}_{H,2}^{H,1}$', 'Interpreter','latex', 'FontSize',20)
I increased the font size to show it. (Reference: The Not So Short Introduction To LaTeX page 87)
.
  2 件のコメント
Juan Angel Tapia
Juan Angel Tapia 2022 年 11 月 16 日
Thank you very much @Star Strider, you are very kind!, your answer works for me, and thank you for the reference and the option of set font Size, thank you ;) !!
Greetings!
Star Strider
Star Strider 2022 年 11 月 16 日
My pleasure!

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

カテゴリ

Help Center および File ExchangeAnnotations についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by