summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnkitr192017-07-11 09:01:07 +0530
committerAnkitr192017-07-11 09:01:07 +0530
commite09999991b1417f0984a8324d92f1d477fc42a15 (patch)
tree004642df9aeb29cc63cb753745547fd32579151a
parentf55e3c1bd4f625f040030f398bb4501ae91d494e (diff)
downloadScilab2C-e09999991b1417f0984a8324d92f1d477fc42a15.tar.gz
Scilab2C-e09999991b1417f0984a8324d92f1d477fc42a15.tar.bz2
Scilab2C-e09999991b1417f0984a8324d92f1d477fc42a15.zip
New demos for signal processing functions
-rw-r--r--2.3-1/demos/ffilt.dem.sce16
-rw-r--r--2.3-1/demos/filt_sinc.dem.sce18
-rw-r--r--2.3-1/demos/fsfirlin.dem.sce16
-rw-r--r--2.3-1/demos/scilab2c.dem.gateway.sce3
-rw-r--r--2.3-1/jar/scilab_en_US_help.jarbin11210 -> 11210 bytes
-rw-r--r--2.3-1/macros/ASTManagement/libbin1956 -> 2008 bytes
-rw-r--r--2.3-1/macros/CCodeGeneration/libbin1004 -> 1056 bytes
-rw-r--r--2.3-1/macros/ErrorMessages/libbin468 -> 520 bytes
-rw-r--r--2.3-1/macros/FunctionAnnotation/libbin2360 -> 2412 bytes
-rw-r--r--2.3-1/macros/FunctionList/libbin536 -> 588 bytes
-rw-r--r--2.3-1/macros/GeneralFunctions/libbin1080 -> 1132 bytes
-rw-r--r--2.3-1/macros/Hardware/AVR/libbin920 -> 972 bytes
-rw-r--r--2.3-1/macros/Hardware/RasberryPi/libbin924 -> 976 bytes
-rw-r--r--2.3-1/macros/ImageProcessing/core/libbin472 -> 524 bytes
-rw-r--r--2.3-1/macros/ImageProcessing/highgui/libbin532 -> 584 bytes
-rw-r--r--2.3-1/macros/ImageProcessing/imgproc/libbin700 -> 752 bytes
-rw-r--r--2.3-1/macros/Scilab-Arduino/libbin664 -> 716 bytes
-rw-r--r--2.3-1/macros/SymbolTable/libbin700 -> 752 bytes
-rw-r--r--2.3-1/macros/ToolInitialization/libbin752 -> 804 bytes
-rw-r--r--2.3-1/macros/findDeps/libbin568 -> 620 bytes
-rw-r--r--2.3-1/macros/libbin484 -> 536 bytes
-rw-r--r--2.3-1/tests/unit_tests/test_ffilt/scilabcode/ffilttest.sci8
-rw-r--r--2.3-1/tests/unit_tests/test_ffilt/scilabcode/main.sci12
-rw-r--r--2.3-1/tests/unit_tests/test_filtsinc/scilabcode/filt_sinctest.sci10
-rw-r--r--2.3-1/tests/unit_tests/test_fsfirlin/scilabcode/fsfirlintest.sci6
-rw-r--r--2.3-1/tests/unit_tests/test_fsfirlin/scilabcode/main.sci9
26 files changed, 98 insertions, 0 deletions
diff --git a/2.3-1/demos/ffilt.dem.sce b/2.3-1/demos/ffilt.dem.sce
new file mode 100644
index 00000000..0268041a
--- /dev/null
+++ b/2.3-1/demos/ffilt.dem.sce
@@ -0,0 +1,16 @@
+// Copyright (C) 2017 - IIT Bombay - FOSSEE
+//This file must be used under the terms of the CeCILL.
+// This source file is licensed as described in the file COPYING, which
+// you should have received as part of this distribution. The terms
+// are also available at
+// http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
+// Author: Ankit Raj
+// Organization: FOSSEE, IIT Bombay
+// Email: toolbox@scilab.in
+//
+
+lines(0);
+
+global SCI2CHOME
+
+scilab2c(SCI2CHOME+"/tests/unit_tests/test_ffilt/scilabcode/main.sci",TMPDIR,SCI2CHOME+"/tests/unit_tests/test_ffilt/scilabcode");
diff --git a/2.3-1/demos/filt_sinc.dem.sce b/2.3-1/demos/filt_sinc.dem.sce
new file mode 100644
index 00000000..001ceb87
--- /dev/null
+++ b/2.3-1/demos/filt_sinc.dem.sce
@@ -0,0 +1,18 @@
+// Copyright (C) 2017 - IIT Bombay - FOSSEE
+//This file must be used under the terms of the CeCILL.
+// This source file is licensed as described in the file COPYING, which
+// you should have received as part of this distribution. The terms
+// are also available at
+// http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
+// Author: Ankit Raj
+// Organization: FOSSEE, IIT Bombay
+// Email: toolbox@scilab.in
+//
+
+
+
+lines(0);
+
+global SCI2CHOME
+
+scilab2c(SCI2CHOME+"/tests/unit_tests/test_filtsinc/scilabcode/filt_sinctest.sci",TMPDIR,SCI2CHOME+"/tests/unit_tests/test_filtsinc/scilabcode");
diff --git a/2.3-1/demos/fsfirlin.dem.sce b/2.3-1/demos/fsfirlin.dem.sce
new file mode 100644
index 00000000..278252ae
--- /dev/null
+++ b/2.3-1/demos/fsfirlin.dem.sce
@@ -0,0 +1,16 @@
+// Copyright (C) 2017 - IIT Bombay - FOSSEE
+//This file must be used under the terms of the CeCILL.
+// This source file is licensed as described in the file COPYING, which
+// you should have received as part of this distribution. The terms
+// are also available at
+// http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
+// Author: Ankit Raj
+// Organization: FOSSEE, IIT Bombay
+// Email: toolbox@scilab.in
+//
+
+lines(0);
+
+global SCI2CHOME
+
+scilab2c(SCI2CHOME+"/tests/unit_tests/test_fsfirlin/scilabcode/main.sci",TMPDIR,SCI2CHOME+"/tests/unit_tests/test_fsfirlin/scilabcode");
diff --git a/2.3-1/demos/scilab2c.dem.gateway.sce b/2.3-1/demos/scilab2c.dem.gateway.sce
index b572166c..bc158bfa 100644
--- a/2.3-1/demos/scilab2c.dem.gateway.sce
+++ b/2.3-1/demos/scilab2c.dem.gateway.sce
@@ -39,6 +39,9 @@ subdemolist = ["Trigonometric Identity" , "TrigonometricIdentity.dem.sce";
"Arduino analog output", "analog_out.dem.sce";
"Arduino DC motor", "dc_motor.dem.sce";
"Arduino Master write", "master_write.dem.sce";
+ "Ffilt coeff. of FIR low pass filter","ffilt.dem.sce";
+ "Design of FIR linear phase filters using freq. samping technique","fsfirlin.dem.sce";
+ "Samples of sinc function","filt_sinc.dem.sce";
];
subdemolist(:,2) = demopath + subdemolist(:,2);
diff --git a/2.3-1/jar/scilab_en_US_help.jar b/2.3-1/jar/scilab_en_US_help.jar
index cb760b05..42fc9ad4 100644
--- a/2.3-1/jar/scilab_en_US_help.jar
+++ b/2.3-1/jar/scilab_en_US_help.jar
Binary files differ
diff --git a/2.3-1/macros/ASTManagement/lib b/2.3-1/macros/ASTManagement/lib
index e9d351a5..5978ea72 100644
--- a/2.3-1/macros/ASTManagement/lib
+++ b/2.3-1/macros/ASTManagement/lib
Binary files differ
diff --git a/2.3-1/macros/CCodeGeneration/lib b/2.3-1/macros/CCodeGeneration/lib
index f2696fef..31819793 100644
--- a/2.3-1/macros/CCodeGeneration/lib
+++ b/2.3-1/macros/CCodeGeneration/lib
Binary files differ
diff --git a/2.3-1/macros/ErrorMessages/lib b/2.3-1/macros/ErrorMessages/lib
index 1500b1fa..794d4c01 100644
--- a/2.3-1/macros/ErrorMessages/lib
+++ b/2.3-1/macros/ErrorMessages/lib
Binary files differ
diff --git a/2.3-1/macros/FunctionAnnotation/lib b/2.3-1/macros/FunctionAnnotation/lib
index 5eb9bc2f..bb1f47c6 100644
--- a/2.3-1/macros/FunctionAnnotation/lib
+++ b/2.3-1/macros/FunctionAnnotation/lib
Binary files differ
diff --git a/2.3-1/macros/FunctionList/lib b/2.3-1/macros/FunctionList/lib
index e101853b..c3274f18 100644
--- a/2.3-1/macros/FunctionList/lib
+++ b/2.3-1/macros/FunctionList/lib
Binary files differ
diff --git a/2.3-1/macros/GeneralFunctions/lib b/2.3-1/macros/GeneralFunctions/lib
index 846ca1b2..1cf5c1f5 100644
--- a/2.3-1/macros/GeneralFunctions/lib
+++ b/2.3-1/macros/GeneralFunctions/lib
Binary files differ
diff --git a/2.3-1/macros/Hardware/AVR/lib b/2.3-1/macros/Hardware/AVR/lib
index 53e56599..069c520e 100644
--- a/2.3-1/macros/Hardware/AVR/lib
+++ b/2.3-1/macros/Hardware/AVR/lib
Binary files differ
diff --git a/2.3-1/macros/Hardware/RasberryPi/lib b/2.3-1/macros/Hardware/RasberryPi/lib
index dc759fe8..4c85475b 100644
--- a/2.3-1/macros/Hardware/RasberryPi/lib
+++ b/2.3-1/macros/Hardware/RasberryPi/lib
Binary files differ
diff --git a/2.3-1/macros/ImageProcessing/core/lib b/2.3-1/macros/ImageProcessing/core/lib
index 7f003c8e..d80305c4 100644
--- a/2.3-1/macros/ImageProcessing/core/lib
+++ b/2.3-1/macros/ImageProcessing/core/lib
Binary files differ
diff --git a/2.3-1/macros/ImageProcessing/highgui/lib b/2.3-1/macros/ImageProcessing/highgui/lib
index 787c25fa..1e7f7507 100644
--- a/2.3-1/macros/ImageProcessing/highgui/lib
+++ b/2.3-1/macros/ImageProcessing/highgui/lib
Binary files differ
diff --git a/2.3-1/macros/ImageProcessing/imgproc/lib b/2.3-1/macros/ImageProcessing/imgproc/lib
index 93c83909..a83978b5 100644
--- a/2.3-1/macros/ImageProcessing/imgproc/lib
+++ b/2.3-1/macros/ImageProcessing/imgproc/lib
Binary files differ
diff --git a/2.3-1/macros/Scilab-Arduino/lib b/2.3-1/macros/Scilab-Arduino/lib
index 5b7beab0..f3d5b2fc 100644
--- a/2.3-1/macros/Scilab-Arduino/lib
+++ b/2.3-1/macros/Scilab-Arduino/lib
Binary files differ
diff --git a/2.3-1/macros/SymbolTable/lib b/2.3-1/macros/SymbolTable/lib
index c42cf1a5..e66158d4 100644
--- a/2.3-1/macros/SymbolTable/lib
+++ b/2.3-1/macros/SymbolTable/lib
Binary files differ
diff --git a/2.3-1/macros/ToolInitialization/lib b/2.3-1/macros/ToolInitialization/lib
index 267c9c9f..685205d4 100644
--- a/2.3-1/macros/ToolInitialization/lib
+++ b/2.3-1/macros/ToolInitialization/lib
Binary files differ
diff --git a/2.3-1/macros/findDeps/lib b/2.3-1/macros/findDeps/lib
index 69c3c0e1..68ea65d7 100644
--- a/2.3-1/macros/findDeps/lib
+++ b/2.3-1/macros/findDeps/lib
Binary files differ
diff --git a/2.3-1/macros/lib b/2.3-1/macros/lib
index f759663f..9f133493 100644
--- a/2.3-1/macros/lib
+++ b/2.3-1/macros/lib
Binary files differ
diff --git a/2.3-1/tests/unit_tests/test_ffilt/scilabcode/ffilttest.sci b/2.3-1/tests/unit_tests/test_ffilt/scilabcode/ffilttest.sci
new file mode 100644
index 00000000..fcf1732f
--- /dev/null
+++ b/2.3-1/tests/unit_tests/test_ffilt/scilabcode/ffilttest.sci
@@ -0,0 +1,8 @@
+function ffilttest()
+ ft="sb";
+ ni=5;
+ fc=0.2;
+ fh=0.9;
+ xi=ffilt(ft,ni,fc,fh);
+ disp(xi);
+endfunction
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
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
+//
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