Convolution signal with Dirac Delta function

조회 수: 11 (최근 30일)
Nick Papanikolaou
Nick Papanikolaou 2015년 12월 24일
댓글: Charles Albanese 2020년 6월 2일
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!
  댓글 수: 1
Charles Albanese
Charles Albanese 2020년 6월 2일
Error using rectpulse
Too many input arguments.

댓글을 달려면 로그인하십시오.

답변 (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