ONES matrix function
Description
ONES(A) returns a matrix with the same dimensions as matrix A with all elements equal to 1.
ONES(n) returns a square n × n matrix, consisting of all ones.
ONES(r,c) returns a r × c matrix, consisting of all ones.
ONES(A) returns a matrix with the same dimensions as matrix A with all elements equal to 1.
ONES(n) returns a square n × n matrix, consisting of all ones.
ONES(r,c) returns a r × c matrix, consisting of all ones.