Plot intervall function in Matlab

3 visualizaciones (últimos 30 días)
FEDERICO RODELLA
FEDERICO RODELLA el 31 de Ag. de 2022
Comentada: FEDERICO RODELLA el 31 de Ag. de 2022
Hi, how can I plot this function, with even and odd parts?

Respuestas (1)

Abderrahim. B
Abderrahim. B el 31 de Ag. de 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

Categorías

Más información sobre Line Plots en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by