I have following code:
D = sparse(756123, 769768);i=756123;j=769768;D(i,j)=1;a=D(i,j)ind=sub2ind(size(D),i,j);
If I access the (756123, 769768)th element of "D" using linear indexing ( D(ind) ), I receive the following error:
??? Maximum variable size allowed by the program is exceeded.
Best Answer