How to reduce the variable size.I have attached my program. Output error- Maximum variable size allowed by the program is exceeded.
Mostrar comentarios más antiguos
How to reduce the variable size.I have attached my program. Output error- Maximum variable size allowed by the program is exceeded.
4 comentarios
Guillaume
el 14 de Sept. de 2015
In 2015b, the error is more detailed and as follow:
Requested 85x85x85x85x85 (33.1GB) array exceeds maximum array size preference.
Unless you have at least 33.1 GB of ram, there's no way that your ndgrid call will succeed.
UJJWAL BARMAN
el 14 de Sept. de 2015
Steven Lord
el 14 de Sept. de 2015
It depends. What is "the program" supposed to do?
UJJWAL BARMAN
el 15 de Sept. de 2015
Respuestas (1)
Walter Roberson
el 14 de Sept. de 2015
0 votos
As you were shown before: http://uk.mathworks.com/matlabcentral/answers/236509-programming-to-find-out-all-possible-combination-of-numbers-a-b-c-d-in-which-0-a-b-c-d-90#answer_190535
Just change the 4 to 5.
2 comentarios
UJJWAL BARMAN
el 14 de Sept. de 2015
Walter Roberson
el 16 de Sept. de 2015
Editada: Walter Roberson
el 16 de Sept. de 2015
>> ABCDE = nchoosek(uint8(1:89),5);
>> size(ABCDE)
ans =
41507642 5
You can extract the individual columns if you need to,
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!