Plot intervall function in Matlab

4 vues (au cours des 30 derniers jours)
FEDERICO RODELLA
FEDERICO RODELLA le 31 Août 2022
Commenté : FEDERICO RODELLA le 31 Août 2022
Hi, how can I plot this function, with even and odd parts?

Réponses (1)

Abderrahim. B
Abderrahim. B le 31 Août 2022
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 commentaire
FEDERICO RODELLA
FEDERICO RODELLA le 31 Août 2022
Ok thank you :)

Connectez-vous pour commenter.

Catégories

En savoir plus sur Line Plots 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