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!