Multiplying by inverse of a matrix
Show older comments
Hello,
I want to calculate
where α is a scalar (it's for calculating the estimated variance of a parameter). Using
where α is a scalar (it's for calculating the estimated variance of a parameter). Usingalpha*inv(X'X)
gives the correct results but (a) Matlab suggest not doing so (although the backward slash gives the wrong results) and (b) I've always avoided multiplying by the inverse of a matrix due to potential inaccuracy.
Is there a better way?
Thank you
2 Comments
J. Alex Lee
on 27 Nov 2020
can you give example values of alpha and X?
JPF
on 27 Nov 2020
Accepted Answer
More Answers (0)
Categories
Find more on Phased Array System Toolbox 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!