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.
- n
- The number of columns desired in the output. If not specified, it is assumed to be 1.
Outputs
- R
- R is a logical matrix of true values of the requested size.
Examples
R = true
R = 1
R = true(2,3)
R = [ 1 1 1; 1 1 1]