Plotting Impulse response of a system and I am stuck
2 views (last 30 days)
Show older comments
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:
0 Comments
Accepted Answer
Walter Roberson
on 2 Jan 2022
sympref('HeaviSideAtOrigin', 1);
u = @heaviside
syms t
h(t) = exp(-2*t) .* u(t-1);
fplot(h, [-5 5])
5 Comments
David Hill
on 2 Jan 2022
It was clearly in the link, heaviside(0) is default 1/2. Inorder to change this to 1, the code above is used.
More Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!