Anda di halaman 1dari 1

SCRIPT

%Program Menentukan y[n] Dengan Konvolusi dan Dengan DFT


clc;
close all;
clear all ;
x = input ('Masukkan Deretan Sinyal Diskrit x[n] = ');
h1 =input ('Masukkan Deretan Response Impulse h1[n] = ');
h2 =input ('Masukkan Deretan Response Impulse h2[n] = ');
y1 = conv(x,h1);
y2= conv (y1,h2);
L = length(y2);
X = fft(x,L);
H = fft(h2,L);
Y2 = X.*H;
y3 = ifft(Y2);
disp('Hasil Dengan Konvolusi = '); disp(y2);
disp ('Hasil Dengan DFT = '); disp(y3);

HASIL COMMAND WINDOW

Anda mungkin juga menyukai