Convolution signal with Dirac Delta function

11 visualizaciones (últimos 30 días)
Nick Papanikolaou
Nick Papanikolaou el 24 de Dic. de 2015
Comentada: Charles Albanese el 2 de Jun. de 2020
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!

Respuestas (0)

Categorías

Más información sobre Trigonometry en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by