how to set the negative values on a diagram to zero

조회 수: 1 (최근 30일)
Sehoon Chang
Sehoon Chang 2020년 6월 7일
답변: Star Strider 2020년 6월 7일
hello all,
could you kindly advise me how to set a limit on a diagram.
As you may see on the diagram that i have plotted, the orange graph tends to show negative value.
I wish to set a limit on the y-axis to zero, so that there are no more negative value appearing on the diagram.

답변 (1개)

Star Strider
Star Strider 2020년 6월 7일
One approach:
figure
plot( ... )
ylim([0, max(ylim)])
if you only want to limit the y-axis range.

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by