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 日

0 投票

y1=sin(0:0.1:10);
y2=min(y1,0.8);
plot(y2)

その他の回答 (1 件)

Stephen23
Stephen23 2022 年 11 月 16 日

1 投票

y = min(1750,y)

カテゴリ

製品

リリース

R2022b

質問済み:

2022 年 11 月 16 日

回答済み:

2022 年 11 月 16 日

Community Treasure Hunt

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

Start Hunting!

Translated by