How do create a simulink filter if I have the impulse response
2 views (last 30 days)
Show older comments
I have an impulse response of a system h(t) = exp(-10t)u(t). I am trying to code this in simlink. I am using an interpreted Fcn block that calls this function. I am doing something wrong, as I am getting a frame rate error.
function y = func(u)
h = exp(-10*u);
y = conv(h,u);
0 Comments
Answers (1)
Paul
on 14 Nov 2023
Hi Joe,
Why not derive the transfer function H(s) as the Laplace transform of h(t), and then implement H(s) in the Transfer Fcn block. I assume that the that u(t) in the expression h(t) = exp(-10*t)u(t) is the unit step function and not the same as as the u input to func, which is the signal to be filtered.
2 Comments
Paul
on 15 Nov 2023
Driving an integrator with a discrete signal shouldn't be an error. Can you post the error message and a link to the doc page for the WGN block?
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!