y axis value representation on figure

2 vues (au cours des 30 derniers jours)
Askic V
Askic V le 6 Mai 2022
Commenté : Voss le 9 Mai 2022
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.

Réponse acceptée

Voss
Voss le 6 Mai 2022
Modifié(e) : Voss le 7 Mai 2022
yyaxis left
plot(0:1000:50000)
yyaxis right
plot(400000000:-10000000:0)
set(get(gca(),'YAxis'),'Exponent',0,'TickLabelFormat','%.0f')
  4 commentaires
Askic V
Askic V le 8 Mai 2022
Thank you very much!. It's very helpful.
Voss
Voss le 9 Mai 2022
You're welcome!

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur 2-D and 3-D Plots dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by