ONES

All ones.

ONES(N) is an N-by-N matrix of ones.

ONES(M,N) or ONES([M,N]) is an M-by-N matrix of ones.

ONES(SIZE281GDAB(A)) is the same size as A and all ones.