summaryrefslogtreecommitdiff
path: root/2.3-1/demos/Brijesh_Demos/test_ndgrid.sci
diff options
context:
space:
mode:
authorAbhinav Dronamraju2017-08-10 20:33:46 +0530
committerAbhinav Dronamraju2017-08-10 20:33:46 +0530
commitde496fd5c6183e2f5eba2b4688d2bcf18aef62a1 (patch)
tree81f1fac7d3b728c5bebb44480066eb454ec5d0f6 /2.3-1/demos/Brijesh_Demos/test_ndgrid.sci
parent6823e5b2c48f92e7e88b7c06fc7b6191e2a3c411 (diff)
parentdcfc88991cdfa7f8e53607094e8d26cae399b78e (diff)
downloadScilab2C-de496fd5c6183e2f5eba2b4688d2bcf18aef62a1.tar.gz
Scilab2C-de496fd5c6183e2f5eba2b4688d2bcf18aef62a1.tar.bz2
Scilab2C-de496fd5c6183e2f5eba2b4688d2bcf18aef62a1.zip
Merge and functions added
Diffstat (limited to '2.3-1/demos/Brijesh_Demos/test_ndgrid.sci')
-rw-r--r--2.3-1/demos/Brijesh_Demos/test_ndgrid.sci20
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