How to change x-axis values?

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.

 Accepted Answer

Ameer Hamza
Ameer Hamza on 12 Apr 2020
Edited: Ameer Hamza on 12 Apr 2020
ax = gca;
ax.XAxis.Exponent = 0;

2 Comments

Hello. Ok, how do I make axis bar show on top and right of right - to make the graph look like a box? thanks.

Sign in to comment.

More Answers (0)

Categories

Find more on Creating, Deleting, and Querying Graphics Objects in Help Center and File Exchange

Tags

Asked:

on 12 Apr 2020

Edited:

on 12 Apr 2020

Community Treasure Hunt

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

Start Hunting!