ones(n)
The ones(n) function returns an n x n matrix of all 1’s.
Examples
OML
>> ones(5)
1 1 1 1 1
1 1 1 1 1
1 1 1 1 1
1 1 1 1 1
1 1 1 1 1
Block