Respuesta aceptada

Birdman
Birdman el 26 de Feb. de 2018
Why don't you define this function with piecewise command very easily?
syms z(n)
z(n)=piecewise(n>=1 & n<=5,n,n<1 | n>5,0);
and plot it to see the results.
t=0:0.01:7;
plot(t,z(t))

Más respuestas (0)

Categorías

Más información sobre Signal Processing Toolbox en Centro de ayuda y File Exchange.

Preguntada:

el 24 de Feb. de 2018

Respondida:

el 26 de Feb. de 2018

Community Treasure Hunt

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

Start Hunting!

Translated by