Contents
Previous
Next
Subchapters
Current Chapters->
mlmode_assignment
multiplestatement
mlmode_same
mlmode_if
mlmode_for
mlmode_while
mlmode_colon
mlmode_numbers
mlmode_building
mlmode_character
mlmode_quote
mlmode_matrixdivision
mlmode_logicalop
mlmode_numericop
mlmode_realpart
mlmode_matrixindex
mlmode_logicalindex
mlmode_grow
Parent Chapters->
Omatrix6
mlmode
mlmode_language
mlmode_logicalindex
Search Tools->
contents
reference
index
search
Logical Indices (Mlmode)
Syntax
x
(
index
)
O-Matrix Mode
row and column flags
Description
Indices can be logical values in Mlmode. Only the indices that correspond to true values are included in the result.
Example
If in Mlmode you enter
x = [ 0 1 2 3 4 5 6 ];
flag = x > 1;
x(flag)
O-Matrix will respond
[ 2 3 4 5 6 ]