manipulation of (too) huge matrix (beyond the calculation capacity of my computer)
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Sylvain Bart
el 18 de Sept. de 2019
Comentada: Sylvain Bart
el 18 de Sept. de 2019
Hello matlab users,
I have to programme thing that are over my current skills in matlab, here is what I would like to do:
I have 2 matrix A=8 777 x 6 and B=10 257 x 6, The columns 1 to 5 are 5 parameters values and the 6th is the Maximum likelihood (Mll) score for the set of these 5 parameter values. (I need to run a model with A, B, and multiplied the models results, so kind of one model with 10 parameters)
I thus need to take a look on all combinaisons: 8 777* 10 257 ... (that is the issue...)
How to deal with this? because 8777 x 10 257 is too hugh for matlab and my computer (I have an error message saying that "exceeds maximum array size preference")
I think there is possibility as at the end I need only few data:
Actually, I am only interested in combinaison for which the addition of MllA+MllB are between 427.92105 and 428.49755
e.g.: a row would be like this: [x x x x x x x x x x sumllAB] and if sumMllAB is in the criterion (between 427.92105 and 428.49755) it is selected, and if not, it is not selected/save. I know that with my criterion, I should get arround 1 or 2 million of combinaison instead of 1 billion (that is a first reduce of memory)
Furthermore, at the end, for the modelling purpose, I would only need the parameter values (10 parameters) with i) the best sumMllAB for the curve and the min and max sumMllAB (within my criterion) to plot the Confidence interval on my plot.
Is anyone could help me with this? how to implement this in a decent time of calculation and not too much memory? maybe a loop that write in a new matrix based on my criterion?
Many thanks in advance for your answer,
Sylvain
2 comentarios
Matt J
el 18 de Sept. de 2019
Editada: Matt J
el 18 de Sept. de 2019
How to deal with this? because 8777 x 10 257 is too hugh for matlab and my computer (I have an error message saying that "exceeds maximum array size preference")
How old is your computer and how much RAM does it have? A matrix of that size is only 600 MB in double floats.
the best sumMllAB for the curve and the min and max sumMllAB (within my criterion) to plot the Confidence interval on my plot.
What is the difference between the "best sumMllAB" and the "max sumMllAB".
Respuesta aceptada
Matt J
el 18 de Sept. de 2019
Editada: Matt J
el 18 de Sept. de 2019
Actually, I am only interested in combinaison for which the addition of MllA+MllB are between 427.92105 and 428.49755
If you have a vector MIIA that is 8777x1 and MIIB that is 10257x1, then
sumML=MllA(:)+MllB(:).';
[I,J]=find(427.92105<=sumML & sumML<=428.49755);
rowsA=A(I,:);
rowsB=B(J,:);
Más respuestas (0)
Ver también
Categorías
Más información sobre Matrix Indexing en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!