Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 1

clc

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')

You might also like