Effacer les filtres
Effacer les filtres

Best way to store multiple (say 500) sparse matrices

1 vue (au cours des 30 derniers jours)
Sam T
Sam T le 26 Juin 2012
Hi,
I would like to ask the Matlab users what is the best way to store multiple (say 500 or more) sparse matrices so that we have memory optimization.
Bigger picture: I am running an iteration, and in each iteration, I calculate a sparse multi-dimensional matrix (say N x N x N) where N varies from 200-1000. Lets call this matrix "H".
Thus, corresponding to each iteration I have H_1, H_2, H_3,.... H_m where "H_i" corresponds to multi-dimensional - H, calculated at step i of the iteration. The number maximum number of iterations are 400, and therefore, I have H_1, H_2, H_3, ......., H_400.
I want to store them in some organized fashion so that whenever required, I can easily pass any one or two or more of them as argument to a function or use them for any further calculation.
Thank you.

Réponses (2)

Walter Roberson
Walter Roberson le 26 Juin 2012

Sam T
Sam T le 26 Juin 2012
Another possible solution includes writing every H_i to a separate file in binary format, and then reading it whenever required. The binary format helps keep the file size small.

Catégories

En savoir plus sur Sparse Matrices dans Help Center et File Exchange

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by