How to find output of system with impulse response function
20 views (last 30 days)
Show older comments
Mandeep Kaur
on 9 Feb 2022
Answered: Bhavana Ravirala
on 14 Feb 2022
How i can find the output of system with impulse response function h(t) = sin(t) u(t) for input f(t) = exp(-t)u(t) in MATLAB?
0 Comments
Accepted Answer
Bhavana Ravirala
on 14 Feb 2022
Hi Mandeep,
From my understanding you are trying to find output of the system which can be obtained by convolution of input and impulse response. The convolution can be obtained by product of Laplace transform of both the signals.
syms t; % t is a variable
impulseResponce=exp(-t);
input=sin(t);
k=laplace(impulseResponse)*laplace(input); % product of laplace transforms
output=ilaplace(k); % inverse laplace transform
For more information refer to the documentations below:
Hope this helps.
0 Comments
More Answers (0)
See Also
Categories
Find more on Calculus in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!