Can anyone help me calculating the inverse of a vector?

Réponses (1)

Star Strider
Star Strider le 26 Mai 2016

0 votes

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!

Translated by