R/zeros_ones.R
zeros.Rd
wrapper of zeros_or_ones() that replicates the behavior of the zeros() function on Matlab
zeros_or_ones()
zeros()
zeros(n1, n2 = n1, ...)
number of rows
number of columns
extra dimensions
An n1-by-n2 matrix of zeros
zeros(5) #> [,1] [,2] [,3] [,4] [,5] #> [1,] 0 0 0 0 0 #> [2,] 0 0 0 0 0 #> [3,] 0 0 0 0 0 #> [4,] 0 0 0 0 0 #> [5,] 0 0 0 0 0 zeros(5, 3) #> [,1] [,2] [,3] #> [1,] 0 0 0 #> [2,] 0 0 0 #> [3,] 0 0 0 #> [4,] 0 0 0 #> [5,] 0 0 0