Matrix operators

Symbol

Name

Syntax

+   

Add

A+B

-

Subtract

A-B

*   

Matrix multiply

A*B

.*   

Array multiply (carried out element by element)

A.*B

/   

Divide via matrix inverse

A/B

./   

Array divide (carried out element by element)

A./B

'   

Transpose

A’

^   

Power

A^B

.^   

Array power (carried out element by element)

A.^B

=

Assignment operator (only in OML window)

A = B

:

Sequence delimiter

s:e or s:t:e, where s = start value; t = step value; e = end value. If t is not specified, the step is 1.