How can I type inverse sign in axis labels?

조회 수: 8(최근 30일)
Shang Gao
Shang Gao 2018년 5월 2일
답변: Star Strider 2018년 5월 2일
I'd like to type something like in the picture in the x label text. Can someone tell me how to do that?


Star Strider
Star Strider 2018년 5월 2일
Try this:
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