I am trying to initialize a two-dimensional array and then filling it up gradually. However whenever I try to initialize it, it gives Out of Memory error.
D = zeros(1000000, 1000000);
Is there any way to resolve the error and get a workaround for this ?