Plotting Impulse response of a system and I am stuck
3 次查看(过去 30 天)
显示 更早的评论
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 个评论
采纳的回答
Walter Roberson
2022-1-2
sympref('HeaviSideAtOrigin', 1);
u = @heaviside
syms t
h(t) = exp(-2*t) .* u(t-1);
fplot(h, [-5 5])
5 个评论
David Hill
2022-1-2
It was clearly in the link, heaviside(0) is default 1/2. Inorder to change this to 1, the code above is used.
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Assumptions 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!