How working on a matrix with a large number of rows?
Mostra commenti meno recenti
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 Commenti
Matt J
il 31 Ott 2014
Do you have 12GB of RAM? That's how much it would take to store the result in single precision.
per isakson
il 31 Ott 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
il 31 Ott 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.
Risposta accettata
Più risposte (0)
Categorie
Scopri di più su Multidimensional Arrays 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!