how to add the solar symbol as a subscript on the y-axis label?
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
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 comentarios
Walter Roberson
el 11 de Sept. de 2016
Which MATLAB version are you using? Unicode symbols are not expected to work until R2014b or later.
Walter Roberson
el 11 de Sept. de 2016
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.
Respuestas (0)
Ver también
Categorías
Más información sobre Solar Power en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!