Hi,
I used these codes for ylabel, but it does not work:
h1 = ylabel(['$R_m_a_x/A_0$'])
set(h1,'Interpreter','latex','fontsize',15)
any help please
Thanks in advance!

 Akzeptierte Antwort

infinity
infinity am 22 Jul. 2019

0 Stimmen

Hello,
The error come from the typing of latex syntax.
You should change a bit in your latex, for example
ylabel('$R_{{m}_{{a}_{x}}}/A_0$','Interpreter','latex')
It might work.

3 Kommentare

Ahmed Abdalazeez
Ahmed Abdalazeez am 22 Jul. 2019
thank you, it works but then the letters getting smaller and smaller R_m_a_x, so the word ' max ' sholud be the same size for all letters but here m is small then a is smaller then x is the smallest.
Hello,
So, you could change a bit like this
ylabel('$R_{max}/A_0$','Interpreter','latex')
Ahmed Abdalazeez
Ahmed Abdalazeez am 22 Jul. 2019
Yes, it works well thanks a lot :)

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Community Treasure Hunt

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

Start Hunting!

Translated by