ones
Creates an matrix made of ones.
Syntax
R = ones
R = ones(n)
R = ones(n, m)
R = ones(n, m, ..., z)
R = ones(n, m, ..., z, 'like', V)
R = ones(n, m, ..., z, classname)
Input argument
n - a variable: n-by-n matrix
m - a variable: n-by-m matrix
Description
ones returns a matrix made of ones.
Examples
See also
History
Version | Description |
---|---|
1.0.0 | initial version |
Author
Allan CORNET
Last updated