Professional Documents
Culture Documents
Exp 4
Exp 4
clear all
close all
x=[1 2 3 0]
h=[2 3 4 5]
L1=length(x)
L2=length(h)
N=max(L1,L2)
Xk=fft(x,N)
Hk=fft(h,N)
Yk=Xk.*Hk
y=ifft(Yk,N)
subplot(2,1,1)
stem(x)
title('System Input-Periodic')
subplot(2,1,2)
stem(abs(y))
title('System Output')