summaryrefslogtreecommitdiff
path: root/demos/Brijesh_Demos
diff options
context:
space:
mode:
authorBrijeshcr2017-07-27 18:29:25 +0530
committerBrijeshcr2017-07-27 18:29:25 +0530
commit4bd28238003609980b66edbd25dae9239a237843 (patch)
tree49c5f6b3e0bbf1d5ad8f4b432fbb2de5e9e77ffe /demos/Brijesh_Demos
parent07d9e48f562ecdfc20192c0af6cb06a413caf30e (diff)
downloadScilab2C_fossee_old-4bd28238003609980b66edbd25dae9239a237843.tar.gz
Scilab2C_fossee_old-4bd28238003609980b66edbd25dae9239a237843.tar.bz2
Scilab2C_fossee_old-4bd28238003609980b66edbd25dae9239a237843.zip
Nanmin and Nanmean added
Diffstat (limited to 'demos/Brijesh_Demos')
-rw-r--r--demos/Brijesh_Demos/Test_Add_SCE.sce4
-rw-r--r--demos/Brijesh_Demos/test_addition.sci (renamed from demos/Brijesh_Demos/Test_Addition.sci)2
-rw-r--r--demos/Brijesh_Demos/test_cross.sci (renamed from demos/Brijesh_Demos/Test_Cross.sci)2
-rw-r--r--demos/Brijesh_Demos/test_erf.sci (renamed from demos/Brijesh_Demos/Test_Erf.sci)2
-rw-r--r--demos/Brijesh_Demos/test_erfc.sci (renamed from demos/Brijesh_Demos/Test_Erfc.sci)2
-rw-r--r--demos/Brijesh_Demos/test_erfcx.sci (renamed from demos/Brijesh_Demos/Test_Erfcx.sci)2
-rw-r--r--demos/Brijesh_Demos/test_erfinv.sci (renamed from demos/Brijesh_Demos/Test_Erfinv.sci)2
-rw-r--r--demos/Brijesh_Demos/test_isequal.sci (renamed from demos/Brijesh_Demos/Test_Isreal.sci)2
-rw-r--r--demos/Brijesh_Demos/test_nanmean.sci14
-rw-r--r--demos/Brijesh_Demos/test_nanmin.sci16
-rw-r--r--demos/Brijesh_Demos/test_toeplitz.sci (renamed from demos/Brijesh_Demos/Test_Toeplitz.sci)2
11 files changed, 38 insertions, 12 deletions
diff --git a/demos/Brijesh_Demos/Test_Add_SCE.sce b/demos/Brijesh_Demos/Test_Add_SCE.sce
deleted file mode 100644
index e250078..0000000
--- a/demos/Brijesh_Demos/Test_Add_SCE.sce
+++ /dev/null
@@ -1,4 +0,0 @@
-a = 1;
-b = 5;
-c = a+b;
-disp(c);
diff --git a/demos/Brijesh_Demos/Test_Addition.sci b/demos/Brijesh_Demos/test_addition.sci
index 856ba63..f70f0af 100644
--- a/demos/Brijesh_Demos/Test_Addition.sci
+++ b/demos/Brijesh_Demos/test_addition.sci
@@ -1,4 +1,4 @@
-function Test_Addition()
+function test_addition()
a = 1;
b = 2;
d = float(b);
diff --git a/demos/Brijesh_Demos/Test_Cross.sci b/demos/Brijesh_Demos/test_cross.sci
index 01206b3..6c2224d 100644
--- a/demos/Brijesh_Demos/Test_Cross.sci
+++ b/demos/Brijesh_Demos/test_cross.sci
@@ -1,4 +1,4 @@
-function Test_Cross
+function test_cross
disp('Datatype: Double');
i1 = [1 2;3 4;5 6];
i2 = [7 8;9 10;11 12];
diff --git a/demos/Brijesh_Demos/Test_Erf.sci b/demos/Brijesh_Demos/test_erf.sci
index 42208f6..5cebb25 100644
--- a/demos/Brijesh_Demos/Test_Erf.sci
+++ b/demos/Brijesh_Demos/test_erf.sci
@@ -1,4 +1,4 @@
-function Test_Erf
+function test_erf
disp('Datatype: Double');
i1 = [1 2 .5; 7 .8 .9];
o1 = erf(i1);
diff --git a/demos/Brijesh_Demos/Test_Erfc.sci b/demos/Brijesh_Demos/test_erfc.sci
index 2ad8cfe..ac50e15 100644
--- a/demos/Brijesh_Demos/Test_Erfc.sci
+++ b/demos/Brijesh_Demos/test_erfc.sci
@@ -1,4 +1,4 @@
-function Test_Erfc
+function test_erfc
disp('Datatype: Double');
i1 = [1 2 .5; 7 .8 .9];
o1 = erfc(i1);
diff --git a/demos/Brijesh_Demos/Test_Erfcx.sci b/demos/Brijesh_Demos/test_erfcx.sci
index e17ae51..a2a553c 100644
--- a/demos/Brijesh_Demos/Test_Erfcx.sci
+++ b/demos/Brijesh_Demos/test_erfcx.sci
@@ -1,4 +1,4 @@
-function Test_Erfcx
+function test_erfcx
disp('Datatype: Double');
i1 = [.75 .8 -.32];
o1 = erfcx(i1);
diff --git a/demos/Brijesh_Demos/Test_Erfinv.sci b/demos/Brijesh_Demos/test_erfinv.sci
index 99a8683..483d290 100644
--- a/demos/Brijesh_Demos/Test_Erfinv.sci
+++ b/demos/Brijesh_Demos/test_erfinv.sci
@@ -1,4 +1,4 @@
-function Test_Erfinv
+function test_erfinv
disp('Datatype: Double');
i1 = [12 0.6 -2 -0.75];
o1 = erfinv(i1);
diff --git a/demos/Brijesh_Demos/Test_Isreal.sci b/demos/Brijesh_Demos/test_isequal.sci
index 4846d31..1531275 100644
--- a/demos/Brijesh_Demos/Test_Isreal.sci
+++ b/demos/Brijesh_Demos/test_isequal.sci
@@ -1,4 +1,4 @@
-function Test_Isreal
+function test_isequal
disp('Datatype: Double');
i1 = [1 2 3];
i2 = [1 2 3];
diff --git a/demos/Brijesh_Demos/test_nanmean.sci b/demos/Brijesh_Demos/test_nanmean.sci
new file mode 100644
index 0000000..6009ad8
--- /dev/null
+++ b/demos/Brijesh_Demos/test_nanmean.sci
@@ -0,0 +1,14 @@
+function test_nanmean
+ disp('Datatype: Double');
+ i1 = [1 %nan;3 4;5 %nan];
+ o1 = nanmean(i1,'r');
+ disp(o1);
+ disp('Datatype: Float');
+ i2 = float([1 %nan;3 4;5 %nan]);
+ o2 = nanmean(i2,'r');
+ disp(o2);
+ disp('Datatype: Double complex');
+ i3 = [1 %nan %i;3 4+1*%i %nan;5 %nan %i];
+ o3 = nanmean(i3,'c');
+ disp(o3);
+endfunction
diff --git a/demos/Brijesh_Demos/test_nanmin.sci b/demos/Brijesh_Demos/test_nanmin.sci
new file mode 100644
index 0000000..8651743
--- /dev/null
+++ b/demos/Brijesh_Demos/test_nanmin.sci
@@ -0,0 +1,16 @@
+function test_nanmin
+ disp('Datatype: Double');
+ i1 = [%nan %nan; %nan %nan; %nan %nan];
+ [o1, p1] = nanmin(i1);
+ //o1 = nanmin(i1);
+ disp(o1);
+ disp(p1);
+ //disp('Datatype: Float');
+ //i2 = float([1 %nan;3 4;5 %nan]);
+ //o2 = nanmean(i2,'r');
+ //disp(o2);
+ //disp('Datatype: Double complex');
+ //i3 = [1 %nan %i;3 4+1*%i %nan;5 %nan %i];
+ //o3 = nanmean(i3,'c');
+ //disp(o3);
+endfunction
diff --git a/demos/Brijesh_Demos/Test_Toeplitz.sci b/demos/Brijesh_Demos/test_toeplitz.sci
index 6d1269e..4a52e7b 100644
--- a/demos/Brijesh_Demos/Test_Toeplitz.sci
+++ b/demos/Brijesh_Demos/test_toeplitz.sci
@@ -1,4 +1,4 @@
-function Test_Toeplitz()
+function test_toeplitz()
disp('Datatype: Double');
ai = [1 2 3 4];
bi = [1 6 7 8];