필터 지우기
필터 지우기

Scaling the y axis in the matlab plots

조회 수: 10 (최근 30일)
Aditya
Aditya 2012년 9월 1일
Hi,
I am plotting certain amount of data in matlab. I want to scale my y axis in the plot. For e.g: The minimum value i want on y axis is 0 and the maximum value i want on y axis is 100 although the maximum value i m having in my data to be plotted is 50.But on the polt i want my y axis to be shown till 100.
Please help me in this case

답변 (1개)

Azzi Abdelmalek
Azzi Abdelmalek 2012년 9월 1일
편집: Azzi Abdelmalek 2012년 9월 1일
plot(t,y);
set(gca,'xlim',[xmin xmax],'ylim',[ymin ymax])
% you can use 'xlim' or 'ylim' or both

카테고리

Help CenterFile Exchange에서 Line Plots에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by