Is there a way to get a 'less than or equal to' symbol in to a text document?
96 次查看(过去 30 天)
显示 更早的评论
I'm unable to find the correct code to get a 'less than or equal to' symbol in to a text document?
0 个评论
采纳的回答
ANIL LAMICHHANE
2020-11-6
I think it should be
text(.4,.4,'$3 \leq 4$','interpreter','latex')
Source:
4 个评论
Walter Roberson
2020-11-6
- 3 \le 4 =>
- 3 \leq 4 =>
Ah, they are synonyms apparently: https://tex.stackexchange.com/questions/182620/why-does-leq-show-up-as-le
更多回答(2 个)
Bruno Luong
2020-11-6
编辑:Bruno Luong
2020-11-6
To keep standard font
text(.2,.2,['3 ' char(8804) ' 4'])
text(.3,.3,['3≤4 (default)']) % if your editor is configured to support unicode
text(.4,.4,'$3 \leq 4$ latex','interpreter','latex')
text(.5,.5,'3 \leq 4 tex','interpreter','tex')
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/405520/image.png)
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 String Parsing 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!