R/zeros.R
zeros.Rd
Create a matrix of zeros of size (dim1 x dim2).
zeros(dim1, dim2 = NULL)
The dimension of the matrix (if square) or the number of rows.
The number of columns
A matrix of zeros.
Other MATLAB: cell(), diag_matlab(), feval(), fileparts(), isempty(), ones(), randn(), rand(), size(), tic(), toc()
cell()
diag_matlab()
feval()
fileparts()
isempty()
ones()
randn()
rand()
size()
tic()
toc()
zeros(3) #> [,1] [,2] [,3] #> [1,] 0 0 0 #> [2,] 0 0 0 #> [3,] 0 0 0 zeros(0,3) #> [,1] [,2] [,3] zeros(4,7) #> [,1] [,2] [,3] [,4] [,5] [,6] [,7] #> [1,] 0 0 0 0 0 0 0 #> [2,] 0 0 0 0 0 0 0 #> [3,] 0 0 0 0 0 0 0 #> [4,] 0 0 0 0 0 0 0 zeros(1,4) #> [,1] [,2] [,3] [,4] #> [1,] 0 0 0 0