Azzera filtri
Azzera filtri

How can I type inverse sign in axis labels?

3 visualizzazioni (ultimi 30 giorni)
Shang Gao
Shang Gao il 2 Mag 2018
Risposto: Star Strider il 2 Mag 2018
I'd like to type something like in the picture in the x label text. Can someone tell me how to do that?

Risposte (1)

Star Strider
Star Strider il 2 Mag 2018
Try this:
figure
plot(rand(1,20), rand(1,20), 'p')
xlabel('A^{-1}') % Using Default ‘TeX’ Interpreter
xlabel('$A^{^-1}$', 'Interpreter','latex') % Using ‘LaTeX’ Interpreter

Community Treasure Hunt

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

Start Hunting!

Translated by