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.

 Respuesta aceptada

Ameer Hamza
Ameer Hamza el 12 de Abr. de 2020
Editada: Ameer Hamza el 12 de Abr. de 2020

0 votos

ax = gca;
ax.XAxis.Exponent = 0;

2 comentarios

SuzieChan
SuzieChan el 12 de Abr. de 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 el 12 de Abr. de 2020
Add the line
box on

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Creating, Deleting, and Querying Graphics Objects en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 12 de Abr. de 2020

Editada:

el 12 de Abr. de 2020

Community Treasure Hunt

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

Start Hunting!

Translated by