Continuous Convolution in Time Domain
이전 댓글 표시
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)

채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Multirate Signal Processing에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!


