ones
Create array of all ones
Syntax
Description
returns the scalar
X
= ones1
.
returns
an X
= ones(sz1,...,szN
)sz1
-by-...-by-szN
array of ones where
sz1,...,szN
indicates the size of each dimension. For
example, ones(2,3)
returns a 2-by-3 array of ones.
Examples
Input Arguments
Output Arguments
Extended Capabilities
Version History
Introduced before R2006a