FUNCTION REFERENCE

logical

Convert to logical.

Convert to logical.

Syntax

logical(X)

Nonzero values become true and zeros become false.

Example

logical([2 0])   % [true false]

Differences from MATLAB: none known.

These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.