Y = ones(n)
Y = ones(m,n)
Y = ones(size(A))
Y = ones(n)
is an n
-by-n
matrix of 1s.
Y = ones(m,n)
is an m
-by-n
matrix of 1s.
Y = ones(size(A))
is the same size as A
and consists of all 1s.
eye
,rand
,randn
,zeros
(c) Copyright 1994 by The MathWorks, Inc.