Plot intervall function in Matlab
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Hi, how can I plot this function, with even and odd parts?
0 Kommentare
Antworten (1)
Abderrahim. B
am 31 Aug. 2022
Hi!
Use piecewise and fplot.
syms t
xThree = piecewise( t <= 2 ,1 ,(t > 2) & (t <= 4), t-2, t >= 4, 1)
fplot(xThree)
Hope this helps
Siehe auch
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!