Limit value to a function

조회 수: 3 (최근 30일)
Adolfo Marro
Adolfo Marro 2022년 11월 16일
답변: Stephen23 2022년 11월 16일
I have this graphic (reached with a function), but I have to limit the y value to 1750 from x values 0:0.006, how can I do it? To give you an example, this is what I have to reach

채택된 답변

Fangjun Jiang
Fangjun Jiang 2022년 11월 16일
y1=sin(0:0.1:10);
y2=min(y1,0.8);
plot(y2)

추가 답변 (1개)

Stephen23
Stephen23 2022년 11월 16일
y = min(1750,y)

카테고리

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

제품


릴리스

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by