How working on a matrix with a large number of rows?
古いコメントを表示
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 件のコメント
Matt J
2014 年 10 月 31 日
Do you have 12GB of RAM? That's how much it would take to store the result in single precision.
per isakson
2014 年 10 月 31 日
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
2014 年 10 月 31 日
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.
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Logical についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!