Plot intervall function in Matlab

Antworten (1)

Abderrahim. B
Abderrahim. B am 31 Aug. 2022

0 Stimmen

Hi!
Use piecewise and fplot.
syms t
xThree = piecewise( t <= 2 ,1 ,(t > 2) & (t <= 4), t-2, t >= 4, 1)
xThree = 
fplot(xThree)
Hope this helps

Gefragt:

am 31 Aug. 2022

Kommentiert:

am 31 Aug. 2022

Community Treasure Hunt

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

Start Hunting!

Translated by