Subscript in figure WHAT AM I DOING WRONG?

9 ビュー (過去 30 日間)
Danielle Blum
Danielle Blum 2020 年 10 月 20 日
コメント済み: Danielle Blum 2020 年 10 月 23 日
Hi, for some reason I can't get subscript on my axes titles to work properly, below I've tried two different ways to produce suscript that work on my scatter plots, but are not functioning here. When run, the axes titles are exactly as written with all the symbols. Can someone please tell me what I've done wrong? Running version version R0219b. Thank you for your time.
mdl = fitlm(x,y)
coefCI(mdl)
plot(mdl,'Marker','.','Color','b')
ylabel('Comparison 1 NO_2 ppb_v')
xlabel('Comparison 2 [NO_{2}] ppb_{v}')

採用された回答

Stephan
Stephan 2020 年 10 月 20 日
編集済み: Stephan 2020 年 10 月 20 日
  3 件のコメント
Danielle Blum
Danielle Blum 2020 年 10 月 23 日
Thank you, I managed to figure it out with the final two links and this additional link others might find helpful.
Here is what the labels look like now:
ylabel('Comparison 1 $NO_{2}$ $ppb_{v}$','interpreter','latex')
xlabel('Comparison 2 $NO_{2}$ $ppb_{v}$','interpreter','latex')
For those who are new to this notation, like me, placing the $ around the entire label results in no spaces between words or units.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeGrid Lines, Tick Values, and Labels についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by