Matrix inversion using "pinv" or any other technique
Mostrar comentarios más antiguos
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.
Respuesta aceptada
Más respuestas (1)
Walter Roberson
el 23 de Feb. de 2018
At the command prompt give the command
type pinv
You can see the entire code there. It is not a long routine.
1 comentario
Harsha K
el 23 de Feb. de 2018
Categorías
Más información sobre Linear Algebra en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!