true

Returns true value(s).

Syntax

R = true(m, n)

Inputs

m
The number of rows desired in the output. If not specified, it is assumed to be 1.
Type: integer
Dimension: scalar
n
The number of columns desired in the output. If not specified, it is assumed to be 1.
Type: integer
Dimension: scalar

Outputs

R
R is a logical matrix of true values of the requested size.

Examples

Default example:
R = true
R = 1
Matrix example:
R = true(2,3)
R = [ 1 1 1; 1 1 1]