MATLAB: Interpreter latex label problem

interpreter latex

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!

Best 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.