Concatenating large matrices - out of memory
Ältere Kommentare anzeigen
I have four 4096x4096 sparse matrices namely A, B, C, and D and they only have elements on the diagonal.
I tried to make a matrix X = [ A B; C D] which is 8192x8192 but I get an out of memory error.
Essentially, I need to multiply X with a 8192x1 vector Y.
Is there a more sophisticated way to do this?
Akzeptierte Antwort
Weitere Antworten (1)
Konrad Malkowski
am 12 Mär. 2013
0 Stimmen
Have you tried explicitly storing the matrix as sparse?
1 Kommentar
John
am 12 Mär. 2013
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!