From e09999991b1417f0984a8324d92f1d477fc42a15 Mon Sep 17 00:00:00 2001 From: Ankitr19 Date: Tue, 11 Jul 2017 09:01:07 +0530 Subject: New demos for signal processing functions --- 2.3-1/tests/unit_tests/test_fsfirlin/scilabcode/fsfirlintest.sci | 6 ++++++ 2.3-1/tests/unit_tests/test_fsfirlin/scilabcode/main.sci | 9 +++++++++ 2 files changed, 15 insertions(+) create mode 100644 2.3-1/tests/unit_tests/test_fsfirlin/scilabcode/fsfirlintest.sci create mode 100644 2.3-1/tests/unit_tests/test_fsfirlin/scilabcode/main.sci (limited to '2.3-1/tests/unit_tests/test_fsfirlin/scilabcode') diff --git a/2.3-1/tests/unit_tests/test_fsfirlin/scilabcode/fsfirlintest.sci b/2.3-1/tests/unit_tests/test_fsfirlin/scilabcode/fsfirlintest.sci new file mode 100644 index 00000000..4ecec4ea --- /dev/null +++ b/2.3-1/tests/unit_tests/test_fsfirlin/scilabcode/fsfirlintest.sci @@ -0,0 +1,6 @@ +function fsfirlintest() + in=[1 2 3 4 5 6 7 8]; + flg=2; + op=fsfirlin(in,flg); + disp(op); +endfunction diff --git a/2.3-1/tests/unit_tests/test_fsfirlin/scilabcode/main.sci b/2.3-1/tests/unit_tests/test_fsfirlin/scilabcode/main.sci new file mode 100644 index 00000000..a3acc51b --- /dev/null +++ b/2.3-1/tests/unit_tests/test_fsfirlin/scilabcode/main.sci @@ -0,0 +1,9 @@ +//This is the demo file to test the function fsfirlin +//The function gives design of FIR,linear phase filters using frequency sampling technique +function main() + in=[1 2 3 4 5 6 7 8]; //This is the vector of desired frequency responses samples + flg=2; //flg=2 for type-2 filter , it can be 1 for type-1 filter + op=fsfirlin(in,flg); + disp(op); +endfunction +//output -- cgit