Contents Previous Next Subchapters

Creating A Matrix Of Zeros
Syntax zeros(m)    
zeros(
mn)
See Also fill , ones

Description
Returns an integer matrix of zeros with the specified dimension, where m is an integer scalar specifying the number of rows in the return value, and n, if present, is an integer scalar specifying the number of columns in the return value. If n is not present, a column vector with m rows is returned.

Example
     zeros(2, 3)
returns
     {
     [ 0 , 0 , 0 ]
     [ 0 , 0 , 0 ]
     }