How to use mldivide ("\") instead of inv in this formulae
Show older comments
Hi,
I would like to use the mldivide "\" instead of inv in this formulae, but I am not sure how I should do it? I want to replace it for a matter of speed.
R = alpha * inv(B) * Q' * inv(I-((1-alpha)*P)) * Q;
The sizes of the matrices are the following:
n = total number of elements in a matrix
m = total number of unique elements in a matrix
P = n x n
I = n x n (identity matrix)
Q = n x m
B = n x m (diagonal matrix, sum of the rows in Q)
R = m x m
Any help would be greatly appreciated!
Thank you!
2 Comments
Jean-Philippe
on 3 Jun 2012
Shrinivas Iyengar
on 14 Mar 2022
Accepted Answer
More Answers (0)
Categories
Find more on Logical 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!