summaryrefslogtreecommitdiff
path: root/2.3-1/tests/unit_tests/test_ffilt/scilabcode/main.sci
diff options
context:
space:
mode:
authorAbhinav Dronamraju2017-07-11 20:21:06 +0530
committerAbhinav Dronamraju2017-07-11 20:21:06 +0530
commit8595e91e1c157f471cc359a7dd927b1e18561b2d (patch)
tree58ad8130d10ce5d2e1741f56b833b6e6048b42a8 /2.3-1/tests/unit_tests/test_ffilt/scilabcode/main.sci
parent1c92658b51e2d22e2146d1747f9bc804f079e252 (diff)
parent54646786e8d89820b4c4bd4f7606fe5fdf818687 (diff)
downloadScilab2C-8595e91e1c157f471cc359a7dd927b1e18561b2d.tar.gz
Scilab2C-8595e91e1c157f471cc359a7dd927b1e18561b2d.tar.bz2
Scilab2C-8595e91e1c157f471cc359a7dd927b1e18561b2d.zip
Ankit's changes
Diffstat (limited to '2.3-1/tests/unit_tests/test_ffilt/scilabcode/main.sci')
-rw-r--r--2.3-1/tests/unit_tests/test_ffilt/scilabcode/main.sci12
1 files changed, 12 insertions, 0 deletions
diff --git a/2.3-1/tests/unit_tests/test_ffilt/scilabcode/main.sci b/2.3-1/tests/unit_tests/test_ffilt/scilabcode/main.sci
new file mode 100644
index 00000000..ced653a3
--- /dev/null
+++ b/2.3-1/tests/unit_tests/test_ffilt/scilabcode/main.sci
@@ -0,0 +1,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