the inverse of a vector

3 views (last 30 days)
Iacopo Sagliano
Iacopo Sagliano on 26 May 2016
Answered: Star Strider on 26 May 2016
Can anyone help me calculating the inverse of a vector?

Answers (1)

Star Strider
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.)

Categories

Find more on Mathematics in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!