Appendix B. Operators

Precedence

Operators

1

( )

2

^.^ ‘ .’ (pure transpose)

3

+ (unary plus) − (unary minus) ~ (NOT)

4

* / \.* ./ .\

5

+ (addition) − (subtraction)

6

:

7

> < >= <= == ~=

8

& (AND)

9

| (OR)

(See Help on operator precedence.)

 

Get Essential MATLAB for Engineers and Scientists Fourth Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.