Greek letter and subscript at the same time in axis label

4 vues (au cours des 30 derniers jours)
Mos_bad
Mos_bad le 6 Sep 2018
I want to write x-axis label as (\Delta / H_B) but I could not. Delta is a greek letter and B is a subscription. please help me out how to solve it.
  1 commentaire
Walter Roberson
Walter Roberson le 6 Sep 2018
Which release?
xlabel('\Delta / H_B')
looks fine to me in R2018a.

Connectez-vous pour commenter.

Réponse acceptée

YT
YT le 6 Sep 2018
You almost had it
xlabel('\Delta H_{B}')
  2 commentaires
Mos_bad
Mos_bad le 6 Sep 2018
I mean Delta over H_B
Walter Roberson
Walter Roberson le 6 Sep 2018
Perhaps you would prefer
xlabel('$\frac{\Delta}{H_{B}}$')

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Labels and Annotations dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by