diff options
author | jofret | 2010-06-17 10:07:35 +0000 |
---|---|---|
committer | jofret | 2010-06-17 10:07:35 +0000 |
commit | 351f3e15a4624686a1931f935c7244cacab0a39e (patch) | |
tree | e4ad7ee8afd2d9915d1e26e0fce783b735bfdf9c /demos | |
parent | 9a41d707279502bbc9031fcb6f6bbfae23af1145 (diff) | |
download | scilab2c-351f3e15a4624686a1931f935c7244cacab0a39e.tar.gz scilab2c-351f3e15a4624686a1931f935c7244cacab0a39e.tar.bz2 scilab2c-351f3e15a4624686a1931f935c7244cacab0a39e.zip |
Add demos
Diffstat (limited to 'demos')
-rw-r--r-- | demos/Filter.dem.sce | 18 | ||||
-rw-r--r-- | demos/LinearRegression.dem.sce | 19 | ||||
-rw-r--r-- | demos/Symbols.dem.sce (renamed from demos/alldemos.dem.sce) | 9 | ||||
-rw-r--r-- | demos/TrigonometricIdentity.dem.sce | 9 | ||||
-rw-r--r-- | demos/scilab2c.dem.gateway.sce | 21 |
5 files changed, 72 insertions, 4 deletions
diff --git a/demos/Filter.dem.sce b/demos/Filter.dem.sce new file mode 100644 index 00000000..a0484ece --- /dev/null +++ b/demos/Filter.dem.sce @@ -0,0 +1,18 @@ +// +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2010-2010 - DIGITEO - Bruno JOFRET +// +// 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 +// +// +lines(0); + +global SCI2CHOME +editor(SCI2CHOME+"/tests/unit_tests/test004_Filter/scilabcode/main.sci"); +editor(SCI2CHOME+"/tests/unit_tests/test004_Filter/scilabcode/high_pass.sci"); + +scilab2c(SCI2CHOME+"/tests/unit_tests/test004_Filter/scilabcode/main.sci", TMPDIR, SCI2CHOME+"/tests/unit_tests/test004_Filter/scilabcode/");
\ No newline at end of file diff --git a/demos/LinearRegression.dem.sce b/demos/LinearRegression.dem.sce new file mode 100644 index 00000000..5c3a20c2 --- /dev/null +++ b/demos/LinearRegression.dem.sce @@ -0,0 +1,19 @@ +// +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2010-2010 - DIGITEO - Bruno JOFRET +// +// 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 +// +// + +lines(0); +global SCI2CHOME +editor(SCI2CHOME+"/tests/unit_tests/test001_LinearRegression/scilabcode/mainfunction.sci"); + +scilab2c(SCI2CHOME+"/tests/unit_tests/test001_LinearRegression/scilabcode/mainfunction.sci", TMPDIR); + +editor(TMPDIR+"/main.c");
\ No newline at end of file diff --git a/demos/alldemos.dem.sce b/demos/Symbols.dem.sce index c0f0e812..5339b988 100644 --- a/demos/alldemos.dem.sce +++ b/demos/Symbols.dem.sce @@ -10,8 +10,11 @@ // // -demopath = get_absolute_file_path("alldemos.dem.sce"); +lines(0); -subdemolist = ["Trigonometric Identity" , "TrigonometricIdentity.dem.sce"]; +global SCI2CHOME +editor(SCI2CHOME+"/tests/unit_tests/test002_Symbols/scilabcode/mainfunction.sci"); -subdemolist(:,2) = demopath + subdemolist(:,2);
\ No newline at end of file +scilab2c(SCI2CHOME+"/tests/unit_tests/test002_Symbols/scilabcode/mainfunction.sci", TMPDIR); + +editor(TMPDIR+"/main.c");
\ No newline at end of file diff --git a/demos/TrigonometricIdentity.dem.sce b/demos/TrigonometricIdentity.dem.sce index 36d59ee5..a2c47c1e 100644 --- a/demos/TrigonometricIdentity.dem.sce +++ b/demos/TrigonometricIdentity.dem.sce @@ -10,5 +10,12 @@ // // +lines(0); + global SCI2CHOME -xpad(SCI2CHOME+"/tests/unit_tests/test000_TrigonIdentity/scilabcode/mainfunction.sci");
\ No newline at end of file +editor(SCI2CHOME+"/tests/unit_tests/test000_TrigonIdentity/scilabcode/mainfunction.sci"); + +scilab2c(SCI2CHOME+"/tests/unit_tests/test000_TrigonIdentity/scilabcode/mainfunction.sci", TMPDIR); + +editor(TMPDIR+"/main.c"); + diff --git a/demos/scilab2c.dem.gateway.sce b/demos/scilab2c.dem.gateway.sce new file mode 100644 index 00000000..71372e25 --- /dev/null +++ b/demos/scilab2c.dem.gateway.sce @@ -0,0 +1,21 @@ +// +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2010-2010 - DIGITEO - Bruno JOFRET +// +// 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 +// +// + +demopath = get_absolute_file_path("scilab2c.dem.gateway.sce"); + +subdemolist = ["Trigonometric Identity" , "TrigonometricIdentity.dem.sce"; + "Linear Regression" , "LinearRegression.dem.sce"; + "Symbols", "Symbols.dem.sce"; + "High Pass Filter", "Filter.dem.sce"; + ]; + +subdemolist(:,2) = demopath + subdemolist(:,2);
\ No newline at end of file |