Environmental Engineering Reference
In-Depth Information
The last element of a vector can also be reached by using the
end
keyword
in the following way:
or
The size of a matrix, i.e. the numbers of columns and rows, is given by the
size
command:
length
returns the bigger of both:
The empty array is specified by:
Matrices containing 1s are given by:
Matrices containing zeros are produced analogously: