y=ones(m)
y=ones(m1, m2, m3,...)
Inputs  
m 
A scalar positive integer to construct a matrix of ones of size mXm or a vector of positive integers to construct an array of size m[1]Xm[2]Xm[3]... .

{m1, m2, m3,...} 
A set of positive integers to construct an array of size m1Xm2Xm3... .

Outputs  
y 
An array of ones of the specified size. 
m
is a scalar integer, an mXm
matrix of ones is returned. Otherwise
an array of size m
is retuned.m1Xm2Xm3...