摘要:
onesCreate array of all ones Y = ones(n)Y = ones(m,n)Y = ones([m n])Y = ones(m,n,p,...)Y = ones([m n p ...]) Y = ones(n) returns an n-by-n matrix of 1s. An error message appears if n is not a scalar.Y = ones(m,n) or Y = ones([m n]) returns an m-by-n matrix of ones.Y = ones(m,n,p,...) or Y = ones([m 阅读全文