How can I type inverse sign in axis labels?

조회 수: 3 (최근 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?

답변 (1개)

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

카테고리

Help CenterFile Exchange에서 Axis Labels에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by