mldivide
Perform left division of scalars and/or matrices, equivalent to the \ operator.
Syntax
mldivide(x,y)
Inputs
- x,y
- Dimension: vector | matrix
Outputs
- R
- The quotient result.
Example
R = mldivide([6 2; 4 1],[4; 9])
R = [Matrix] 2 x 1
7.00000
-19.00000
Comments
Solves the equation Ax = B, with an algorithm determined by matrix A.
For a square A the solution is uniquely determined. For a rectangular A with more rows than columns, the unique least squares solution is computed. When A is underdetermined, the computed result is the least squares solution with the minimum norm.