Plot intervall function in Matlab

4 ビュー (過去 30 日間)
FEDERICO RODELLA
FEDERICO RODELLA 2022 年 8 月 31 日
コメント済み: FEDERICO RODELLA 2022 年 8 月 31 日
Hi, how can I plot this function, with even and odd parts?

回答 (1 件)

Abderrahim. B
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)
xThree = 
fplot(xThree)
Hope this helps
  1 件のコメント
FEDERICO RODELLA
FEDERICO RODELLA 2022 年 8 月 31 日
Ok thank you :)

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeLine Plots についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by