Plot intervall function in Matlab
조회 수: 2 (최근 30일)
이전 댓글 표시
Hi, how can I plot this function, with even and odd parts?
댓글 수: 0
답변 (1개)
Abderrahim. B
2022년 8월 31일
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
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!