FUNCTION REFERENCE
all
True if all elements are nonzero.
True if all elements are nonzero.
Syntax
all(A)For a vector it returns one logical value. For a matrix it returns a row with one value per column.
Example
all([1 1 0]) % falseExample
all(ones(2,2,2),[1 3]) % [1 1]Differences from MATLAB: No dim argument for 2-D input; real or logical 2-D arrays. N-D arrays (part 2): dim, vecdim and 'all' with numeric, logical, char and complex input; NaN counts as true.
These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.