summaryrefslogtreecommitdiff
path: root/tests/unit_tests/test_ffilt/scilabcode/main.sci
blob: ced653a3e62a7d464fdc96645151563d974920b1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// The main function test the ffilt function
// ffilt->returns the coefficients of FIR low pass filter
function main()
	ft="sb";    //ft is the type of filter
        ni=5;       //ni is the number of filters sample required
        fc=0.2;     //low frequency cutoff
        fh=0.9;     //high cutoff frequency
        xi=ffilt(ft,ni,fc,fh);
        disp(xi);
endfunction
//output
// 0.2449143    0.4898285  - 0.4    0.4898285    0.2449143