Contents Previous Next Subchapters

Numeric Operators (Mlmode)
Syntax + - * .* ./
O-Matrix Mode addition , subtraction , multiplication , division , matrixmultiplication

Description
In Mlmode, the numeric operators +, -, *, .*, and ./ are extended to logical and character matrices. The corresponding results have type integer. In such an operation, false corresponds to the value zero and true corresponds to the value one.

Example
If in Mlmode you enter
     true  = 1 == 1;
     false = 1 == 0;
     x     = [ true , true , false , false ];
     y     = [ true , false , true , false ];
     x - y
O-Matrix will respond
     x = [ 0 , 1 , -1 , 0 ]