Plotting Impulse response of a system and I am stuck

2 visualizaciones (últimos 30 días)
cikalekli
cikalekli el 2 de En. de 2022
Comentada: David Hill el 2 de En. de 2022
Hi, while I am practising about plotting impulse signal here and I'm stuck:
and I wanted to plot this signal:
I have the following array:

Respuesta aceptada

Walter Roberson
Walter Roberson el 2 de En. de 2022
sympref('HeaviSideAtOrigin', 1);
u = @heaviside
u = function_handle with value:
@heaviside
syms t
h(t) = exp(-2*t) .* u(t-1);
fplot(h, [-5 5])
  5 comentarios
cikalekli
cikalekli el 2 de En. de 2022
Editada: cikalekli el 2 de En. de 2022
I checked the link you sent.
In the link there was no usage of this line of code:
sympref('HeaviSideAtOrigin', 1);
u = @heaviside
Can you please tell me why have we used that code particulary in this example please?
You are life saver and I'd be really glad for your help for elaborating that.
David Hill
David Hill el 2 de En. de 2022
It was clearly in the link, heaviside(0) is default 1/2. Inorder to change this to 1, the code above is used.

Iniciar sesión para comentar.

Más respuestas (0)

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by