Ones

Parent Previous Next

Ones


Create array of all ones



Syntax


ones(n)

n is positive integer

Return a n-by-n matrix in which the elements are all ones

ones(m, n)

m, n are positive integers

Return a m-by-n matrix in which the elements are all ones


Examples


Input

Output

ones(3)

ones(2,4)


See Also


Created with the Personal Edition of HelpNDoc: Free EPub and documentation generator