17  Operator Precedence

Table of Octave operators, in order of decreasing precedence.

octave description
() {}. array index, cell index, structure index
' .' ^ .^ transpose and exponentialtion
+ - ++ -- ! unary minus, increment, logical “not”
* /\ .* ./ .\ multiplication and division
+ - addition and subtraction
: colon
< <= == >= > != relational operators
& | element-wise “and” and “or”
&& || logical “and” and “or”
= += -= *= /= etc. assignment, groups left to right
; , statement separators