Array Division

Navigation:  Language Reference > Operators > Arithmetic >

Array Division

Previous pageReturn to chapter overviewNext page

Syntax

A ./ B

Description

A ./ B divides the elements of A by the elements of B. A./B is the matrix with elements A(i,j)/B(i.j).

Examples

A

B

A ./ B

[1,-2,-4,2]

[1,2,1,4]

[1,-1,-4,0.5]

[2,0;0,2]

[1,2;3,4]

[2,0,0,0.5]

[2,0;0,2]

1

not allowed!

Limitations

A and B must have the same size.