Learn R Programming

PopED (version 0.7.0)

zeros: Create a matrix of zeros.

Description

Create a matrix of zeros of size (dim1 x dim2).

Usage

zeros(dim1, dim2 = NULL)

Value

A matrix of zeros.

Arguments

dim1

The dimension of the matrix (if square) or the number of rows.

dim2

The number of columns

See Also

Other MATLAB: cell(), diag_matlab(), feval(), fileparts(), isempty(), ones(), rand(), randn(), size(), tic(), toc()

Examples

Run this code

zeros(3)
zeros(0,3)
zeros(4,7)
zeros(1,4)

Run the code above in your browser using DataLab