Problem with sqrt symbol on label

Hello guys,
I getting a diferent symbol on an label, and i dont know why. I want the sqrt symbol but when i apply \surd i get a diferent symbol, and i really dont know why.
I am using matlab r2013a.
Source code of the symbol on the context of the program:
ylabel('\surd Drain-Source Current (A)');

回答 (1 件)

Star Strider
Star Strider 2014 年 11 月 25 日

1 投票

It works for me as you wrote it (in R2014b). The only possibility that comes to mind is to specify the interpreter. See if this improves things:
ylabel('\surd Drain-Source Current (A)','Interpreter','tex');

4 件のコメント

ApolloPT
ApolloPT 2014 年 11 月 25 日
I try it but i get the same problem, it seems that there may be a problem with my tex interpreter.
ApolloPT
ApolloPT 2014 年 11 月 25 日
So i tryed to use latex and it works =]:
ylabel('$\sqrt{}$ Drain-Source Current (A)','Interpreter','latex')
Thanks by the way Star Strider, i didnt imagine that label's had tex and latex interpreters!!!
Star Strider
Star Strider 2014 年 11 月 25 日
My pleasure!
I thought about 'latex', but without knowing what MATLAB release you have (LaTeX has only been an option for the last few releases if I remember correctly), decided not to suggest it.
Krishna
Krishna 2019 年 1 月 9 日
Thanks ApolloPT it works

サインインしてコメントする。

質問済み:

2014 年 11 月 25 日

コメント済み:

2019 年 1 月 9 日

Community Treasure Hunt

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

Start Hunting!

Translated by