ldivide

Perform element-wise matrix left division, equivalent to the .\ operator.

Syntax

R = ldivide(x,y)

Inputs

x
The denominator.
Dimension: scalar | vector | matrix
y
The numerator.
Dimension: scalar | vector | matrix

Outputs

R
The quotient result.

Examples

Matrix division by a scalar:
R = ldivide(2,[1 2 3])
R = [Matrix] 1 x 3
0.50000  1.00000  1.50000
Matrix element-wise division:
R = ldivide([1; 4],[2; 4])
R = [Matrix] 2 x 1
2
1