the inverse of a vector
3 views (last 30 days)
Show older comments
Can anyone help me calculating the inverse of a vector?
Answers (1)
Star Strider
on 26 May 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.)
0 Comments
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!