diff options
Diffstat (limited to '2.3-1/demos/Brijesh_Demos')
-rw-r--r-- | 2.3-1/demos/Brijesh_Demos/test_calerf.sci | 18 | ||||
-rw-r--r-- | 2.3-1/demos/Brijesh_Demos/test_nanmin.sci | 5 |
2 files changed, 20 insertions, 3 deletions
diff --git a/2.3-1/demos/Brijesh_Demos/test_calerf.sci b/2.3-1/demos/Brijesh_Demos/test_calerf.sci new file mode 100644 index 00000000..b700c5dc --- /dev/null +++ b/2.3-1/demos/Brijesh_Demos/test_calerf.sci @@ -0,0 +1,18 @@ +function test_calerf + disp('Datatype: Double'); + i1 = [0.9 .754; .32 -.84]; + o1 = calerf(i1,0); + disp(o1); + disp(" "); + o2 = calerf(i1,1); + disp(o2); + disp(" "); + o3 = calerf(i1,2); + disp(o3); + disp(" "); + disp('Datatype: float'); + i2 = float([0.9 .754; .32 -.84]); + o4 = calerf(i2,2); + disp(o4); + disp(" "); +endfunction diff --git a/2.3-1/demos/Brijesh_Demos/test_nanmin.sci b/2.3-1/demos/Brijesh_Demos/test_nanmin.sci index a77f0c90..1665df3a 100644 --- a/2.3-1/demos/Brijesh_Demos/test_nanmin.sci +++ b/2.3-1/demos/Brijesh_Demos/test_nanmin.sci @@ -1,10 +1,9 @@ function test_nanmin disp('Datatype: Double'); i1 = [ 1 2 %nan; 3 %nan -4; %nan 5 6]; - //[o1, p1] = nanmin(i1,'c'); - o1 = nanmin(i1); + [o1, p1] = nanmin(i1); disp(o1); - //disp(p1); + disp(p1); //disp('Datatype: Float'); //i2 = float([1 %nan;3 4;5 %nan]); //o2 = nanmean(i2,'r'); |