Plot intervall function in Matlab
3 ビュー (過去 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!