Creates an array of all zeros.
ZEROS(numrows, numcols, dx, dy)
numrows |
- |
An integer. The number of output rows. |
numcols |
- |
Optional. An integer, the number of output columns. Defaults to numrows. |
dx |
- |
Optional. A real, the increment between X values. Defaults to 1.0. |
dy |
- |
Optional. A real, the increment between Y values. Defaults to 1.0. |
A series or array.
zeros(3, 1)
Returns the series {0, 0, 0}.
zeros(3, 1, 0.1)
Same as the previous example except the DELTAX value is set to 0.1.
zeros(3)
Returns the 3x3 array:
{{0, 0, 0},
{0, 0, 0},
{0, 0, 0}}
zeros(size(A)) returns a array of all zeros with the same dimension as A.