Continuous Convolution in Time Domain
Show older comments
Hello
I have a signal which is
and another one which is
and both of them consist of 1e5 points.
and another one which is I do know that if we convolve these two signals we have 1e5+1e5-1 points for output but I want to see a system which its input has 1e5 points and so for output and I dont know to peak which points.
when I plot the input and output I expect to see that each s(t) should be in synchrony with h(t) cause output should be s(t-500) + s(t-550) but it is not. Also amplitude is not right. I would be very glad if someone can help me fix my problem.
dt = 0.01; % Simulation time step
Duration = 1000; % Simulation length
T = ceil(Duration/dt);
t = (1:T) * dt; % Simulation time points in ms
rho = zeros(size(t));
rho([50000, 55000]) = 1;
K = t/tau_peak .* exp(1-(t/tau_peak));
y = dt*conv(K, rho, 'same');
figure;
plot(t, y)
hold on
plot(t, rho)

1 Comment
Girish
on 10 Oct 2024
what is this ?
Accepted Answer
More Answers (0)
Categories
Find more on Multirate Signal Processing 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!

