Convolution signal with Dirac Delta function

11 次查看(过去 30 天)
I would like to know how can I calculate and plot the result of the convolution: 10sinc(10t)* δ(t-3)
In another example
ts = 0.01; % Sampling step
tx = -5:ts:5; % Time vector for x(t)
x = cos(pi * tx/ 2); % x(t)
th = -2:ts:2; % Time vector for h(t)
h = 2*rectpulse(th,0,2); % h(t)
plot(tx, x, th, h); % Plot the result
ty = -7:ts:7; % Convolution time vector
y = ts*conv(x,h); % Convolution approximation
plot(tx, x, th, h, ty, y); % Plot the result
axis([-8 8 -3 3]);
grid;
xlabel('Time (sec)');
ylabel('Amplitude');
title('Signals of Example 1');
legend('Cosine', 'Rectangular', 'Convolution');
the conv(x,y) command is working ok
Thank you in advance!

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Trigonometry 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by