how to specify y axis?
이전 댓글 표시
how to spesify left y axis as follow:
(0 500 1000)

채택된 답변
추가 답변 (1개)
the cyclist
2020년 6월 21일
set(gca,'YTick',[0 500 1000],'YTickLabel',[0 500 1000])
댓글 수: 5
Ibrahim AlZoubi
2020년 6월 21일
the cyclist
2020년 6월 21일
편집: the cyclist
2020년 6월 21일
Here is a simple example that shows that this syntax works:
figure
plot(1000*rand(7))
set(gca,'YTick',[0 500 1000],'YTickLabel',[0 500 1000])

Perhaps you are doing something afterward that changes it? Maybe you could post the code that creates your figure.
Ibrahim AlZoubi
2020년 6월 21일
Ibrahim AlZoubi
2020년 6월 21일
the cyclist
2020년 6월 21일
rand(7)
was just me generating some random numbers to plot, to illustrate that my code suggestion worked in that case.
카테고리
도움말 센터 및 File Exchange에서 Matrices and Arrays에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
