How to change x-axis values?

2 visualizzazioni (ultimi 30 giorni)
SuzieChan
SuzieChan il 12 Apr 2020
Modificato: SuzieChan il 12 Apr 2020
Hello everyone,
Matlab automatically put the x-axis values into x10 format. This is wrong.
How can I make x-axis values to look like whole number values i.e. 9000, 9200 etc?
Thank you.

Risposta accettata

Ameer Hamza
Ameer Hamza il 12 Apr 2020
Modificato: Ameer Hamza il 12 Apr 2020
ax = gca;
ax.XAxis.Exponent = 0;
  2 Commenti
SuzieChan
SuzieChan il 12 Apr 2020
Hello. Ok, how do I make axis bar show on top and right of right - to make the graph look like a box? thanks.
Ameer Hamza
Ameer Hamza il 12 Apr 2020
Add the line
box on

Accedi per commentare.

Più risposte (0)

Categorie

Scopri di più su Creating, Deleting, and Querying Graphics Objects in Help Center e File Exchange

Tag

Community Treasure Hunt

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

Start Hunting!

Translated by