Command Reference : Matrix Language Reference
Syntax: @ones(n1,n2)
Argument 1: integer, n1
Argument 2: integer, n2
Return: vector, matrix or sym
Creates a vector, matrix or sym filled with the value 1. The size of the created matrix is given by the integers n1 (number of rows) and n2 (number of columns). Example:
matrix m1=@ones(3,2)
sym s1=@ones(5,5)
vector v1=@ones(18)