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

카테고리

Help CenterFile Exchange에서 Line Plots에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by