I have two vectors of size 218531×1 each, and I am trying to execute MESHGRID to obtain a grid based on the elements of these two vectors
x = 1:218531;y = 1:218531;[XX,YY] = meshgrid(x,y);
I obtain the following error:
??? Maximum variable size allowed by the program is exceeded. Error in ==> meshgrid at 44 xx = xx(ones(ny, 1),:);
Best Answer