Contents Previous Next Subchapters

Different Syntax with Same Meaning in Mlmode and O-Matrix Mode
Syntax % .* ./ .^ .' & | ~ ~= nargin nargout
O-Matrix Mode # % / ^ ' and or not <> arg(0)

Operators
The following table lists the operators that have the same meaning, but are different, in the O-Matrix and Mlmode:
Mlmode O-Matrix Meaning
% # Comments and Statement Continuation
.* % Element-By-Element Multiplication
./ / Element-By-Element Division
.^ ^ Element-By-Element Exponentiation
.' ' Element-By-Element Exponentiation
& and Logical Operators
| or Logical Operators
~ not Logical Operators
~= <> Testing Numeric And Logical Equality

Expressions
The following table lists certain expressions that have the same meaning, but are different, in O-Matrix and Mlmode:
Mlmode O-Matrix
y / A (A' \ y')'
nargin The first element of arg(0)
nargout The second element of arg(0)

Example
If you enter
     omatrix
     [ 1 , 2 ] % [ 3 , 4 ]
O-Matrix will reply
     [ 3 , 8 ]
If you continue by entering
     mlmode
     [ 1 , 2 ] .* [ 3 , 4 ]
O-Matrix will reply
     [ 3 , 8 ]