フィルターのクリア

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 Center および File ExchangeAxis Labels についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by