Matrices in a matrix
Ältere Kommentare anzeigen
I have this matrix in which there are 9 different matrices each one is composed by 6 * 6 elements

I want pre and post multiply each matrix-elements in this way:

A is a matrix with the same size of R
P.S. : I have store R and A as a sparse matrices
How can I do?
Thanks
Akzeptierte Antwort
Weitere Antworten (1)
John
am 15 Mai 2017
try
% if A is 6x6
A = rand(6);
A = repmat(A,3);
% if R is 18x18, constructed from multiple 6x6 sub Rij matrices
B = A'*R*A
Kategorien
Mehr zu Creating and Concatenating Matrices finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!