Create a matrix of matrices
Ältere Kommentare anzeigen
I am attempting to fit a number of same-sized (a,b) matricies into a 'master' matrix. For the master-matrix M, I would like to call up the constituent matrices with something like M(1) for the first matrix of size (a,b) and M(2) for the second matrix of size (a,b) and so on.
I saw something to do with cells, however I was having trouble putting my symbolic matricies into each cell. I would also need access to specific rows, columns or values in each constituent matrix.
Currently this is done by stacking the constituent matrices into a master matrix, but calling the values requires the index be increased/decreased by a multiple of one of it's lengths (depending on how it's constructed).
2 Kommentare
Bjorn Gustavsson
am 19 Okt. 2021
The best recommendation might depend on how you're going to use this. So if you can explain what you plan to use the individual/sub-matrices for and how the answers might become better.
Connor LeClaire
am 19 Okt. 2021
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Sparse 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!


