I keep getting the error below, the program which creates a (1 x 21) matrix. I have 8 Gb of memory on my pc surely this small matrix doesn't take up this much memory?
??? Error using ==> zeros Maximum variable size allowed by the program is exceeded.
Error in ==> Task1_2_38 at 29 diff = zeros(1:n);
y = -b/2:.1:b/2;D = .05;lift_dist = d*v*sqrt(1-((2*y)/b).^2); %lift distribution in this case ellipticaln = length(lift_dist);for ind = 1:ncirc_dist = lift_dist./(d*v); % circulation distribution%display(circ_dist)end%figure(1)%plot(y,circ_dist)%plot circulation distribution vs the wing span (y)%display(y)%number of sectiond for the airfoilldy = b/(n-1);%vector initializationinduced_angle = zeros(1,n);%Calculate the constants for the induced angle equation:diff = zeros(1:n);while (norm(diff) > 1e-5)