Scilab Function

for - language keyword for loops

Description

Used to define loops. Its syntax is:

If expression is a matrix or a row vector, variable takes as values the values of each column of the matrix.

Useful example : for variable=n1:step:n2, ...,end

If expression is a list variable takes as values the successive entries of the list.

Warning: the number of characters used to define the body of any conditionnal instruction (if while for or select/case) must be limited to 16k.

Examples