MATLAB Answers

simultaneous diagonalization of two matrices

1 view (last 30 days)
Samhitha Vadlamani
Samhitha Vadlamani on 18 Oct 2016
Answered: Matt J on 18 Oct 2016
How is simultaneous diagonalization performed on two matrices ( say A and B ) using matlab ?

Answers (1)

Matt J
Matt J on 18 Oct 2016
If A and B are the same size
out = bsxfun(@times, cat(3,A,B), eye(size(A)) );

Community Treasure Hunt

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

Start Hunting!