How to write 10^(-6) in xlabel?

53 ビュー (過去 30 日間)
ANANTA BIJOY BHADRA
ANANTA BIJOY BHADRA 2022 年 5 月 17 日
回答済み: Jonas 2022 年 5 月 17 日
I need to write a line in the xlabel. In that line, avlue has to be shown as 4x10^(-5). I am using the below command:
xlabel(['H (A/m)',...
char(10),'B-H curve for f= ',num2str(f),'Hz with $\frac{dB}{dH}$ =',num2str(dBdH),' and the flux density point on anhysteretic B-H curve B1=',num2str(B1),' T',...
char(10),'at corresponding field strength H1=',num2str(H1),' A/m with c=',num2str(c),', $\alpha$=',num2str(alpha_peak),'$\10^-6$','k=',num2str(k)],'Interpreter', 'latex')
However, I am unable to write the 'x10^(-6)' part (bold one). The -6 has to be placed as the power of 10. How can I write that.

採用された回答

Jonas
Jonas 2022 年 5 月 17 日
you need { } around an exponent which is more than one character
e g.
xlabel('$\times 10^{-6}$','Interpreter','latex')

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeMATLAB についてさらに検索

製品


リリース

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by