summaryrefslogtreecommitdiff
path: root/2.3-1/tests/unit_tests/test_filtsinc/scilabcode/filt_sinctest.sci
diff options
context:
space:
mode:
Diffstat (limited to '2.3-1/tests/unit_tests/test_filtsinc/scilabcode/filt_sinctest.sci')
-rw-r--r--2.3-1/tests/unit_tests/test_filtsinc/scilabcode/filt_sinctest.sci10
1 files changed, 10 insertions, 0 deletions
diff --git a/2.3-1/tests/unit_tests/test_filtsinc/scilabcode/filt_sinctest.sci b/2.3-1/tests/unit_tests/test_filtsinc/scilabcode/filt_sinctest.sci
new file mode 100644
index 00000000..ab674b67
--- /dev/null
+++ b/2.3-1/tests/unit_tests/test_filtsinc/scilabcode/filt_sinctest.sci
@@ -0,0 +1,10 @@
+//This is the demo for filt_sinc function
+//This function gives the samples of the sinc fuction
+function filt_sinctest()
+ ni=int(10); //This is the number of samples
+ fc=2; //This is the cut-off freq. of the assosciated low pass filter
+ sd=filt_sinc(ni,fc);
+ disp(sd);
+endfunction
+//output
+//