Limit value to a function

3 Ansichten (letzte 30 Tage)
Adolfo Marro
Adolfo Marro am 16 Nov. 2022
Beantwortet: Stephen23 am 16 Nov. 2022
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

Akzeptierte Antwort

Fangjun Jiang
Fangjun Jiang am 16 Nov. 2022
y1=sin(0:0.1:10);
y2=min(y1,0.8);
plot(y2)

Weitere Antworten (1)

Stephen23
Stephen23 am 16 Nov. 2022
y = min(1750,y)

Kategorien

Mehr zu Visual Exploration finden Sie in Help Center und File Exchange

Produkte


Version

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by