Skip to main content

ONES

Returns an m×n matrix filled with ones.

CategoryMatrix
SyntaxONES(rows, cols)

Parameters

ParameterRequiredDescription
rowsRequiredThe number of rows.
colsRequiredThe number of columns.

Example

ONES([1, 2; 3, 4])

Auto-generated from the EngCanvas function registry.