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
Star Strider
Star Strider 2022년 11월 16일
My pleasure!

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

범주

Find more on 2-D and 3-D Plots in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by