Not enough ram memory to perform a function
显示 更早的评论
Hi, I'm aware that this function cannot be performed due to the dimensions of the matrices (picture attached) and not having enough ram memory, but is there any function in which Matlab could work on the data in chunks to reduce the load on the RAM? Thanks
2 个评论
James Tursa
2018-3-2
Please give us the dimensions of the variables involved, and what you intend to do with the results downstream in your code.
Ricardo Higinio Picon Alvaro
2018-3-3
回答(1 个)
Walter Roberson
2018-3-2
0 个投票
The code you give the image for would not return an index anyhow.
I suspect that what you need is ismember(), and that possibly you might want the second output as well as the first.
2 个评论
Ricardo Higinio Picon Alvaro
2018-3-3
Walter Roberson
2018-3-3
I have doubts that creating that matrix is going to be beneficial .
Performance on any kind of look-up using the result is going to be rather bad. It seems likely to me that you could get rather better performance by working with marginal indices and sorted arrays and binary searches, or perhaps by using containers.Map
类别
在 帮助中心 和 File Exchange 中查找有关 Logical 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!