Search code examples
matlablinear-equation

What is matlab algorithm for A\B?


Which numerical algorithm is used in Matlab for solving set of linear equations when we use x=A\B? for example gauss jordan or LU method etc.?

Thank you


Solution

  • The best one!1

    The flow chart from the official documentation below shows how the algorithm is chosen for full matrices. The flow chart is a bit larger for sparse matrices.

    enter image description here

    1Hopefully this will result in the best algorithm.