MATLAB Answers

0

Interpreter latex label problem

Asked by Ahmed Abdalazeez on 22 Jul 2019
Latest activity Commented on by Ahmed Abdalazeez on 22 Jul 2019
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.

1 Answer

Answer by infinity
on 22 Jul 2019
 Accepted Answer

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

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

Sign in to comment.