ones | R Documentation |
wrapper of zeros_or_ones()
that replicates the behavior of
the ones()
function on Matlab
ones(n1, n2 = n1, ...)
n1 |
number of rows |
n2 |
number of columns |
... |
extra dimensions |
An n1-by-n2 matrix of ones
ones(3) ones(8, 1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.