How to change scale of ploted graph of an axis

조회 수: 5 (최근 30일)
melissa tan
melissa tan 2018년 9월 5일
편집: Ayobami Olanrewaju 2021년 3월 9일
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?

답변 (1개)

jonas
jonas 2018년 9월 5일
xmin and xmax are the axes limits.
set(gca,'xtick',xmin:.1:xmax)
  댓글 수: 6
Abdullah
Abdullah 2019년 7월 11일
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 2021년 3월 9일
편집: Ayobami Olanrewaju 2021년 3월 9일
Thank you. This worked for me.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 2-D and 3-D Plots에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by