How working on a matrix with a large number of rows?
Afficher commentaires plus anciens
Hello everybody! I have a very large array, about 80000 rows and 3 columns. I need to calculate the distances between each line and the others.
I tried to calculate the possible combinations with the function nchoosek , but does not: out of memory
with a loop on the array takes too long ...
how can I do?
3 commentaires
Matt J
le 31 Oct 2014
Do you have 12GB of RAM? That's how much it would take to store the result in single precision.
per isakson
le 31 Oct 2014
See
- matfile, Access and change variables directly in MAT-files, without loading into memory
- matlab.io.MatFile class
it might be worth trying although it will be slow.
Image Analyst
le 31 Oct 2014
What are you really trying to do? Give us the big picture. It may be possible to do that without having all those distances held in memory at the same time . By the way, 240,000 numbers is not large at all (it's way smaller than a typical digital image) - it's the fact that you need distances of every row/line to every other line that takes up all the memory.
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Multidimensional Arrays dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!