summaryrefslogtreecommitdiff
path: root/tests/unit_tests/test_fsfirlin/scilabcode
diff options
context:
space:
mode:
authorAnkitr192017-07-11 09:01:07 +0530
committerAnkitr192017-07-11 09:01:07 +0530
commitd0a1f4e5dcddab2290f68a0395970ec471813119 (patch)
treead7182dceee9944f1369e30994c32d7dbc7312e9 /tests/unit_tests/test_fsfirlin/scilabcode
parentd13b41b79200c533efad1f5dcc8803ca510ae1be (diff)
downloadScilab2C_fossee_old-d0a1f4e5dcddab2290f68a0395970ec471813119.tar.gz
Scilab2C_fossee_old-d0a1f4e5dcddab2290f68a0395970ec471813119.tar.bz2
Scilab2C_fossee_old-d0a1f4e5dcddab2290f68a0395970ec471813119.zip
New demos for signal processing functions
Diffstat (limited to 'tests/unit_tests/test_fsfirlin/scilabcode')
-rw-r--r--tests/unit_tests/test_fsfirlin/scilabcode/fsfirlintest.sci6
-rw-r--r--tests/unit_tests/test_fsfirlin/scilabcode/main.sci9
2 files changed, 15 insertions, 0 deletions
diff --git a/tests/unit_tests/test_fsfirlin/scilabcode/fsfirlintest.sci b/tests/unit_tests/test_fsfirlin/scilabcode/fsfirlintest.sci
new file mode 100644
index 0000000..4ecec4e
--- /dev/null
+++ b/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/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