how to add the solar symbol as a subscript on the y-axis label?
2 ビュー (過去 30 日間)
古いコメントを表示
I am plotting a figure where on the Y axis-label I need the solar symbol. the label would require M_{solar symbol}. I can produce the solar symbol in the label using the following lines of code. But I cannot do "solar symbol" as a subscript. here is my code.
solar = char(9737)
ylabel( ['10^{-6} M',solar, 'Year^{-1}'], 'FontSize',14,'FontWeight','bold')
any suggestions, please ?
3 件のコメント
Walter Roberson
2016 年 9 月 11 日
Which MATLAB version are you using? Unicode symbols are not expected to work until R2014b or later.
Walter Roberson
2016 年 9 月 11 日
The LaTeX symbol name is \astrosun from wasysym which is a package not normally included in MATLAB. There are apparently some ways to add LaTeX packages but the ways are not user-friendly.
回答 (0 件)
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!