diff options
author | Brijeshcr | 2017-08-10 19:38:31 +0530 |
---|---|---|
committer | Brijeshcr | 2017-08-10 19:38:31 +0530 |
commit | dcfc88991cdfa7f8e53607094e8d26cae399b78e (patch) | |
tree | 477aa36aee917771677bbd6500fc57ca353f4d4f /2.3-1/demos/Brijesh_Demos/test_ndgrid.sci | |
parent | 60dc24077bf42ddf1b8973915350dfabdf5b040a (diff) | |
download | Scilab2C-dcfc88991cdfa7f8e53607094e8d26cae399b78e.tar.gz Scilab2C-dcfc88991cdfa7f8e53607094e8d26cae399b78e.tar.bz2 Scilab2C-dcfc88991cdfa7f8e53607094e8d26cae399b78e.zip |
Added Gamma, gammaln, beta, isinf, ndgrid and range
Diffstat (limited to '2.3-1/demos/Brijesh_Demos/test_ndgrid.sci')
-rw-r--r-- | 2.3-1/demos/Brijesh_Demos/test_ndgrid.sci | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/2.3-1/demos/Brijesh_Demos/test_ndgrid.sci b/2.3-1/demos/Brijesh_Demos/test_ndgrid.sci new file mode 100644 index 00000000..79f9a5d3 --- /dev/null +++ b/2.3-1/demos/Brijesh_Demos/test_ndgrid.sci @@ -0,0 +1,20 @@ +function test_ndgrid + disp('Datatype: Double'); + i1 = linspace(-1,1,10); + i2 = linspace(-1,1,3); + [o1, o2] = ndgrid(i1,i2); + disp(o1); + disp(o2); + disp('Datatype: float'); + i3 = linspace(-1,1,10); + i4 = linspace(-1,1,3); + [o3, o4] = ndgrid(float(i3),float(i4)); + disp(o3); + disp(o4); + disp('Datatype: Double Complex'); + i5 = [1 %i 3]; + i6 = [%i 3+%i 5*%i 9 7 0]; + [o5, o6] = ndgrid(i5,i6); + disp(o5); + disp(o6); +endfunction |