DADiSP Worksheet Functions > Function Categories > Generated Series > ZEROS

 

ZEROS

Purpose:

Creates an array of all zeros.

Syntax:

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.

Returns:

A series or array.

Example:

zeros(3, 1)

 

Returns the series {0, 0, 0}.

Example:

zeros(3, 1, 0.1)

 

Same as the previous example except the DELTAX value is set to 0.1.

Example:

zeros(3)

 

Returns the 3x3 array:

 

{{0, 0, 0},

 {0, 0, 0}, 

 {0, 0, 0}} 

Remarks:

zeros(size(A)) returns a array of all zeros with the same dimension as A.

See Also:

EYE

GLINE

GVALARRAY

ONES

RAVEL

SIZE