Not enough ram memory to perform a function
Mostrar comentarios más antiguos
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 comentarios
James Tursa
el 2 de Mzo. de 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
el 3 de Mzo. de 2018
Respuestas (1)
Walter Roberson
el 2 de Mzo. de 2018
0 votos
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 comentarios
Ricardo Higinio Picon Alvaro
el 3 de Mzo. de 2018
Walter Roberson
el 3 de Mzo. de 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
Categorías
Más información sobre Logical en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!