# Left Division

This type of division is different from Left Matrix Division in that the division is done through each corresponding element.

Each index of the second matrix is divided by the same index of the first matrix, and put into a new matrix in the same position.

Only matrices with the same dimensions can be multiplied this way.

.\ | Scalar | Row Vector | Column Vector | Matrix |
---|---|---|---|---|

Scalar | Divides the second scalar by the first scalar. | Divides the scalar from each element in the row vector. The resulting vector is the same size as the original vector. | Divides the scalar from each element in the column vector. The resulting vector is the same size as the original vector. | Divides the scalar from each element in the matrix. The resulting vector is the same size as the original matrix. |

Row Vector | Divides each element of the row vector from the scalar. Produces a vector the same size as the row vector. | Requires the vectors to be the same size. Divides each entity of the first vector from the corresponding entity of the second vector. The resulting vector is the same size as the original vectors. | ||

Column Vector | Divides each element of the column vector from the scalar. Produces a vector the same size as the column vector. | Requires the vectors to be the same size. Divides each entity of the first vector from the corresponding entity of the second vector. The resulting vector is the same size as the original vectors. | ||

Matrix | Divides each element of the matrix from the scalar. Produces a vector the same size as the matrix. | Requires the matrices to be the same size. Divides each entity of the first matrix from the corresponding entity of the second matrix. The resulting matrix is the same size as the original matrices. |

Examples

```
4.\6
ans = 1.5
[6 3 2] .\ 6
ans = [1 2 3]
[5 4 3] .\ [4 6 3]
ans = [0.8 1.5 1]
```

Invalid Examples

`[6 3 2] .\[6; 8; 3]`