Even and odd part of function

2 vues (au cours des 30 derniers jours)
FEDERICO RODELLA
FEDERICO RODELLA le 14 Nov 2022
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?

Réponse acceptée

Matt J
Matt J le 14 Nov 2022
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 commentaires
Matt J
Matt J le 14 Nov 2022
Modifié(e) : Matt J le 14 Nov 2022
You are quite welcome, but please Accept-click the answer if your question is resolved.
FEDERICO RODELLA
FEDERICO RODELLA le 14 Nov 2022
Ok sorry 😅

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Mathematics dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by