powered by
wrapper of zeros_or_ones() that replicates the behavior of the ones() function on Matlab
zeros_or_ones()
ones()
ones(n1, n2 = n1, ...)
An n1-by-n2 matrix of ones
number of rows
number of columns
extra dimensions
ones(3) ones(8, 1)
Run the code above in your browser using DataLab