Even and odd part of function
조회 수: 9 (최근 30일)
이전 댓글 표시
Hi, I have to find the even and the odd part of this function, and plot them.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1193133/image.png)
I do this
syms t
y = piecewise(1 < t < 3, t-1, 0);
fplot(y)
and then?
댓글 수: 0
채택된 답변
Matt J
2022년 11월 14일
syms t
y = symfun( piecewise(1 < t < 3, t-1, 0) ,t);
yeven=(y(t)+y(-t))/2
fplot(yeven)
and similarly for the odd part.
댓글 수: 3
추가 답변 (0개)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!