Tilde character underneath a letter in Matlab charts
10 ビュー (過去 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 で Whos についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!