Matrix inversion using "pinv" or any other technique
Afficher commentaires plus anciens
I am trying to solve a system of independent linear equations.
Ax = B for x.
Many functions within Matlab achieve this with different algorithms. mldivide or '\' operator, 'lsqminnorm' and 'pinv' are the ones I have tried using. For my purpose, pinv seems to be the fastest and relatively good in accuracy.
I am trying to understand which of the equations or part of the matrices are used for computing the inverse of A, i.e., (A^-1)
Let us take an example where A is a matrix of dimensions 500*250. And B is a vector of dimension 500*1. I have two prominent and probably very obvious questions:
1. Now when the inversion of A is performed which of the 500 equations is used to obtain solutions to the 250 variables? 2. How does the 'pinv' function decide which of these equations to choose from?
Kindly advice.
Réponse acceptée
Plus de réponses (1)
Walter Roberson
le 23 Fév 2018
At the command prompt give the command
type pinv
You can see the entire code there. It is not a long routine.
1 commentaire
Harsha K
le 23 Fév 2018
Catégories
En savoir plus sur Linear Algebra dans Centre d'aide et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!