summaryrefslogtreecommitdiff
path: root/2.3-1/tests/unit_tests/test088_SimpleFor/scilabcode/mainfunction.sci
blob: df2c028c24e8c66339ea1cc72e88430ad12ec3cb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
function mainfunction()

// ---------------------------------------
// --- Initialization of the operands. ---
// ---------------------------------------

v1 = zeros(1,5);
disp('v1, before initialization.')
disp(v1)
for cnt = 1:5
   v1(cnt) = cnt;
end
disp('v1, after initialization.')
disp(v1)

endfunction