Tilde character underneath a letter in Matlab charts
조회 수: 11 (최근 30일)
이전 댓글 표시
Olivia Milton-thompson
2019년 10월 14일
댓글: Olivia Milton-thompson
2019년 10월 20일
I am trying to put a tilde underneath a letter in my ylabel on a chart in Matlab. I am using interpreter and latex to do it and i know the way to do it in Latex is \utilde. But Matlab does not seem to recognise this command, it does recognise \tilde, however.
Has anyone tried to put a character underneath a letter in Matlab for chart plots? How can I do this?!
Thanks!
Olivia
댓글 수: 0
채택된 답변
Abhisek Pradhan
2019년 10월 17일
The following code may be able to help you.
ylabel('$\stackrel{a}{\tilde{}}$','Interpreter','latex');
댓글 수: 3
Abhisek Pradhan
2019년 10월 18일
Is this what are you looking for
ylabel('$\stackrel{a}{\tilde{}}$','Interpreter','latex','FontSize',60);
set(get(gca,'ylabel'),'rotation',0);
추가 답변 (1개)
Walter Roberson
2019년 10월 18일
If you do not need latex then use 'a' followed by U+0330. Unicode can be used for interpreter none or tex
댓글 수: 5
Walter Roberson
2019년 10월 18일
It works for me on Mac, R2019b. Which release and OS are you using?
Example of incorporating text and variables:
autilde =['a' hex2dec('0330')];
iter = 17;
ylabel( sprintf('%s%s%d', 'experiment #', autilde, iter))
참고 항목
카테고리
Help Center 및 File Exchange에서 Labels and Annotations에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!