How to reduce the variable size.I have attached my program. Output error- Maximum variable size allowed by the program is exceeded.
2 views (last 30 days)
Show older comments
How to reduce the variable size.I have attached my program. Output error- Maximum variable size allowed by the program is exceeded.
4 Comments
Answers (1)
Walter Roberson
on 14 Sep 2015
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 Comments
Walter Roberson
on 16 Sep 2015
Edited: Walter Roberson
on 16 Sep 2015
>> ABCDE = nchoosek(uint8(1:89),5);
>> size(ABCDE)
ans =
41507642 5
You can extract the individual columns if you need to,
See Also
Categories
Find more on Operators and Elementary Operations 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!