Create a matrix of matrices
Mostra commenti meno recenti
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 Commenti
Bjorn Gustavsson
il 19 Ott 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
il 19 Ott 2021
Risposta accettata
Più risposte (0)
Categorie
Scopri di più su Sparse Matrices in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!


