summaryrefslogtreecommitdiff
path: root/67/CH8/EX8.2/example82.sce
blob: 740e9cd29fa554a3ca429bc1a44c8c39ed571eef (plain)
1
2
3
4
5
6
7
//Example 8.2
//Find the response of an FIR filter with impulse response h[n]=[1,2,4] //to the input sequence x[n]=[1,2]
clc;
x=[1,2];
h=[1,2,4];
Y=convol(x,h);
disp(Y,'y[n]=');