the inverse of a vector
Afficher commentaires plus anciens
Can anyone help me calculating the inverse of a vector?
1 commentaire
KSSV
le 26 Mai 2016
What you mean by inverse?
Réponses (1)
Star Strider
le 26 Mai 2016
Use the pinv function:
v = randi(9, 1, 10) % Create Data
vi = pinv(v) % Take ‘Inverse’
p = v*vi % Check Result
I’m not certain how valid this is mathematically, but it works here. (You can delete the ‘p’ variable assignment, since it is only there to demonstrate that the idea works.)
Catégories
En savoir plus sur MATLAB dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!