How to change scale of ploted graph of an axis

9 Ansichten (letzte 30 Tage)
melissa tan
melissa tan am 5 Sep. 2018
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?

Antworten (1)

jonas
jonas am 5 Sep. 2018
xmin and xmax are the axes limits.
set(gca,'xtick',xmin:.1:xmax)
  6 Kommentare
Abdullah
Abdullah am 11 Jul. 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 am 9 Mär. 2021
Bearbeitet: Ayobami Olanrewaju am 9 Mär. 2021
Thank you. This worked for me.

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu 2-D and 3-D Plots finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by