How to change scale of ploted graph of an axis

10 visualizaciones (últimos 30 días)
melissa tan
melissa tan el 5 de Sept. de 2018
Editada: Ayobami Olanrewaju el 9 de Mzo. de 2021
The x-axis of the plotted i wanted to be in term of step size of 0.1 but currently my graph show step size of 0.2 , how do i change it?

Respuestas (1)

jonas
jonas el 5 de Sept. de 2018
xmin and xmax are the axes limits.
set(gca,'xtick',xmin:.1:xmax)
  6 comentarios
Abdullah
Abdullah el 11 de Jul. de 2019
How to do the same for y-axis. I mean how can y-axis can be rescaled once the figure has been drawn.
Ayobami Olanrewaju
Ayobami Olanrewaju el 9 de Mzo. de 2021
Editada: Ayobami Olanrewaju el 9 de Mzo. de 2021
Thank you. This worked for me.

Iniciar sesión para comentar.

Categorías

Más información sobre 2-D and 3-D Plots en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by