y axis value representation on figure

8 ビュー (過去 30 日間)
Askic V
Askic V 2022 年 5 月 6 日
コメント済み: Voss 2022 年 5 月 9 日
Hello,
is there any way to force Matlab to use 35000 instead of 3.5 x 10^4 on y axis usig plot command?
My plot command creates figure that has x10^N on y axis just like shown in the attached picture.

採用された回答

Voss
Voss 2022 年 5 月 6 日
編集済み: Voss 2022 年 5 月 7 日
yyaxis left
plot(0:1000:50000)
yyaxis right
plot(400000000:-10000000:0)
set(get(gca(),'YAxis'),'Exponent',0,'TickLabelFormat','%.0f')
  4 件のコメント
Askic V
Askic V 2022 年 5 月 8 日
Thank you very much!. It's very helpful.
Voss
Voss 2022 年 5 月 9 日
You're welcome!

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File Exchange2-D and 3-D Plots についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by