Plot intervall function in Matlab
2 views (last 30 days)
Show older comments
Commented: FEDERICO RODELLA on 31 Aug 2022
Hi, how can I plot this function, with even and odd parts?
Abderrahim. B on 31 Aug 2022
Use piecewise and fplot.
xThree = piecewise( t <= 2 ,1 ,(t > 2) & (t <= 4), t-2, t >= 4, 1)
Hope this helps
Find more on Surface and Mesh Plots in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!