ones(h, w)

Create a matrix filled with ones.

ones(3)
hHeight of the matrix.
wWidth of the matrix (optional). If not given, assumed to be the same as the height.
return valueA matrix filled with ones.

The numbery of parameters can vary:
0 - Returns 0.
1 - Returns a square matrix with size determined by the argument.
2 - Returns a rectangular matrix with size determined by arguments.