|MATLAB Function Reference|
Execute block of code specified number of times
The general format is
The columns of the
expression are stored one at a time in the variable while the following statements, up to the
end, are executed.
In practice, the
expression is almost always of the form
scalar, in which case its columns are simply scalars.
The scope of the
for statement is always terminated with a matching
k has already been assigned a value. Create the Hilbert matrix, using
zeros to preallocate the matrix to conserve memory:
s with increments of -
e to the unit
has the same effect as
k is also set here.
© 1994-2005 The MathWorks, Inc.