ones {matlab} | R Documentation |
Create a matrix consisting of all ones or zeros.
ones(n, m = n) zeros(n, m = n)
n, m |
dimensions for the result |
Returns matrix
consisting only of ones (or zeros).
Defaults to square if second dimension argument m
not provided.
P. Roebuck, roebuck@mdanderson.org
ones(3) zeros(3)