Not enough ram memory to perform a function
Show older comments
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 Comments
James Tursa
on 2 Mar 2018
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
on 3 Mar 2018
Answers (1)
Walter Roberson
on 2 Mar 2018
0 votes
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 Comments
Ricardo Higinio Picon Alvaro
on 3 Mar 2018
Walter Roberson
on 3 Mar 2018
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
Categories
Find more on Logical in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!