۱۱
خرداد ۹۴
Matlab latex has problem with fact latex command
MATLAB's TeX does not support those. However, these two will work:
gtext('$\frac{1}{2}$','interpreter','latex','fontsize',50) gtext('$\sqrt{5}$','interpreter','latex','fontsize',50)
To find out more about tex/latex support in MATLAB, look here:
http://www.mathworks.com/help/techdoc/ref/text_props.html#Interpreter
http://www.mathworks.com/help/techdoc/ref/text_props.html#String
https://www.mathworks.com/matlabcentral/answers/6850-tex-problem-why
https://www.mathworks.com/help/matlab/ref/text-properties.html#Interpreter