summaryrefslogtreecommitdiff
path: root/tests/unit_tests/test_fsfirlin/scilabcode/main.sci
diff options
context:
space:
mode:
Diffstat (limited to 'tests/unit_tests/test_fsfirlin/scilabcode/main.sci')
-rw-r--r--tests/unit_tests/test_fsfirlin/scilabcode/main.sci9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/unit_tests/test_fsfirlin/scilabcode/main.sci b/tests/unit_tests/test_fsfirlin/scilabcode/main.sci
new file mode 100644
index 0000000..a3acc51
--- /dev/null
+++ b/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