Hi, I have to find the even and the odd part of this function, and plot them.
I do this
syms t
y = piecewise(1 < t < 3, t-1, 0);
fplot(y)
and then?

 採用された回答

Matt J
Matt J 2022 年 11 月 14 日

1 投票

syms t
y = symfun( piecewise(1 < t < 3, t-1, 0) ,t);
yeven=(y(t)+y(-t))/2
yeven = 
fplot(yeven)
and similarly for the odd part.

3 件のコメント

FEDERICO RODELLA
FEDERICO RODELLA 2022 年 11 月 14 日
編集済み: FEDERICO RODELLA 2022 年 11 月 14 日
Ok thank you so much :)
Matt J
Matt J 2022 年 11 月 14 日
編集済み: Matt J 2022 年 11 月 14 日
You are quite welcome, but please Accept-click the answer if your question is resolved.
FEDERICO RODELLA
FEDERICO RODELLA 2022 年 11 月 14 日
Ok sorry 😅

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

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeMATLAB についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by