MATLAB: More than 580 billion possibilities

580 billion iterationsMATLAB

Is it possible to check more than 580 billion possibilities in matlab without getting out of memory.

Best Answer

Sure, for example,
count=0;
for i=1:580*1e9
possibility=rand;
if possibility>0.5
count=count+1;
end
end
Related Question