How do I make my axis label text like this on a graph?

2 views (last 30 days)
How do I make my xlabel axis like this where the super is moved up and the sub is moved down a little bit.
This is an example.

Answers (1)

Cris LaPierre
Cris LaPierre on 3 Dec 2020
Edited: Cris LaPierre on 3 Dec 2020
MATLAB axis labels use the tex interpreter by default. So just take advantage of that.
xlabel('^{super} Normal _{sub}')

Tags

Community Treasure Hunt

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

Start Hunting!