summaryrefslogtreecommitdiff
path: root/2.3-1/tests/unit_tests/test011_InsExtfunctions/scilabcode/mainfunction.sci
diff options
context:
space:
mode:
Diffstat (limited to '2.3-1/tests/unit_tests/test011_InsExtfunctions/scilabcode/mainfunction.sci')
-rw-r--r--2.3-1/tests/unit_tests/test011_InsExtfunctions/scilabcode/mainfunction.sci24
1 files changed, 24 insertions, 0 deletions
diff --git a/2.3-1/tests/unit_tests/test011_InsExtfunctions/scilabcode/mainfunction.sci b/2.3-1/tests/unit_tests/test011_InsExtfunctions/scilabcode/mainfunction.sci
new file mode 100644
index 00000000..d50ed6bb
--- /dev/null
+++ b/2.3-1/tests/unit_tests/test011_InsExtfunctions/scilabcode/mainfunction.sci
@@ -0,0 +1,24 @@
+//SCI2C: DEFAULT_PRECISION= DOUBLE
+
+function mainfunction()
+
+M1 = 22.3*ones(3,4);
+M2 = 44.5*ones(M1);
+v1 = 1:4;
+s1 = 3;
+
+//[M1(1,1),M1(1,2)] = twooutputs(1);
+
+M1(3,3) = M2(1,3);
+
+M1(5) = 4;
+M1(2,2) = M2(6);
+
+M2(3,2) = s1;
+
+M2(1:4)=11.3*(1:4);
+M2(4:7)=M1(3:6);
+
+disp(M1)
+disp(M2)
+endfunction