how to add the solar symbol as a subscript on the y-axis label?

2 ビュー (過去 30 日間)
Karna Desai
Karna Desai 2016 年 9 月 9 日
コメント済み: Walter Roberson 2016 年 9 月 11 日
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
Walter Roberson 2016 年 9 月 11 日
Which MATLAB version are you using? Unicode symbols are not expected to work until R2014b or later.
Walter Roberson
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 件)

カテゴリ

Help Center および File ExchangeSolar Power についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by