mathlayer
®
About
·
Downloads
·
Functions
·
Support
·
Community
ones
>
Functions
>
Math Base
ones function returns a matrix filled with ones.
Examples
> ones(2)# 1 1 1 1
> ones(2,3)# 1 1 1 1 1 1
> ones([2,3])# 1 1 1 1 1 1
See also
complex
|
eye
|
false
|
rand
|
randn
|
size
|
zeros