Convolution for delta function and unit step function

조회 수: 3 (최근 30일)
Ringo Wong
Ringo Wong 2017년 11월 14일
편집: Ringo Wong 2017년 11월 14일
I got an input x(t)= u(t)-u(t-1) and output y(t)= u(t-1)-u(t-2)
I am asked to find the impulse response ,h, by using echo properties,and plot the convolution of x(t) and h(t) with a sampling frequency higher than 500 Hz.
The impulse response,h, I found is delta(t-1), according to the echo properties.
However, I don't get the plot y(t) which supposed to be.
Please let me know how to correct it.
T = 1./500
t=0:T:4;
h[ 0 1 ];
x = (t>0)-(t>1);
y = T*conv(x,h);
plot(y)

답변 (0개)

카테고리

Help CenterFile Exchange에서 Correlation and Convolution에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by