Plot intervall function in Matlab
Mostrar comentarios más antiguos
Hi, how can I plot this function, with even and odd parts?

Respuestas (1)
Hi!
Use piecewise and fplot.
syms t
xThree = piecewise( t <= 2 ,1 ,(t > 2) & (t <= 4), t-2, t >= 4, 1)
fplot(xThree)
Hope this helps
1 comentario
FEDERICO RODELLA
el 31 de Ag. de 2022
Categorías
Más información sobre Annotations en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

