MATLAB Answers

Interpreter latex label problem

29 views (last 30 days)
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!

  0 Comments

Sign in to comment.

Accepted Answer

infinity
infinity on 22 Jul 2019
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 Comments

Ahmed Abdalazeez
Ahmed Abdalazeez on 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.
infinity
infinity on 22 Jul 2019
Hello,
So, you could change a bit like this
ylabel('$R_{max}/A_0$','Interpreter','latex')
Ahmed Abdalazeez
Ahmed Abdalazeez on 22 Jul 2019
Yes, it works well thanks a lot :)

Sign in to comment.

More Answers (0)

Sign in to answer this question.


Translated by