Repeat statements a specific number of times.
The general form of a FOR statement is
FOR variable = expr, statement, ..., statement END
The columns of the expression are stored one at a time in
for R = 1:N
Step S with increments of -0.1
Set E to the unit N-vectors
Long loops are more memory efficient when the colon expression appears
The BREAK statement can be used to terminate the loop prematurely.
See also PARFOR, IF, WHILE, SWITCH, BREAK, CONTINUE, END, COLON.