![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/230648/image.png)
Insert solar symbol on plot axis
14 ビュー (過去 30 日間)
古いコメントを表示
Hello everyone, how can i insert the solar symbol on my plot axis .tried the following and it doesnt work solar = char(9737) ylabel( ['10^{-6} M_',solar, 'Year^{-1}'], 'FontSize',14,'FontWeight','bold'):it gives “?”instead of solar symbol.help
0 件のコメント
回答 (1 件)
KALYAN ACHARJYA
2019 年 7 月 21 日
編集済み: KALYAN ACHARJYA
2019 年 7 月 21 日
Is this you are looking for?
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/230648/image.png)
I tried with your code
solar=char(9737)
ylabel(['10^{-6} M_',solar, 'Year^{-1}'], 'FontSize',14,'FontWeight','bold');
10 件のコメント
Walter Roberson
2019 年 7 月 24 日
I do not know what sub1 is in this context.
You need to be careful with calling xlabel() or ylabel() just after your subplot() call, in that if you do not do a hold on before you plot() then plot() will probably erase the labels.
I recommend that you read https://www.mathworks.com/support/search_results.html?q=tag%3Aalways-parent
参考
カテゴリ
Help Center および File Exchange で Axis Labels についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!