how to solve the problem of "out of memory"?

조회 수: 2 (최근 30일)
muhammad ismat
muhammad ismat 2018년 4월 5일
i have the following code to calculate matrix s
for i = 1:n
for j = 1:i % <-- Note the 1:i instead of 1:n
s(i,j) = (DL(i,IDX(j))*DL(j,IDX(i))) / norm(DL(i,IDX(j))) * norm(DL(j,IDX(i)));
s(j,i) = s(i,j);
end
end
where the input for this code is matrix (5000 x 5000) i.e i= 1:5000 and also j, and each time calculate s(i,j) from mentioned equation that depend on DL (vector 5000 x 2), but when i run this code the program give me error " out of memory"

답변 (0개)

카테고리

Help CenterFile Exchange에서 Cell Arrays에 대해 자세히 알아보기

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by