"Out of memory error", but there's enought memory

조회 수: 1 (최근 30일)
Andrey Babkin
Andrey Babkin 2011년 9월 11일
Hi All!
16G memory. win7 64 + Matlab 2011a 64.
>>tst=zeros(100000);
??? Out of memory. Type HELP MEMORY for your options.
>>memory
Maximum possible array: 29309 MB (3.073e+010 bytes) *
Memory available for all arrays: 29309 MB (3.073e+010 bytes) *
Memory used by MATLAB: 468 MB (4.910e+008 bytes)
Physical Memory (RAM): 16292 MB (1.708e+010 bytes)
  • Limited by System Memory (physical + swap file) available.
  댓글 수: 1
Oleg Komarov
Oleg Komarov 2011년 9월 11일
Not a bug but a common mistake that even with years of experience sometimes you cannot avoid.

댓글을 달려면 로그인하십시오.

채택된 답변

Oleg Komarov
Oleg Komarov 2011년 9월 11일
Are you sure (troll):
(100 000^2) * 8 bytes = 74.505806 gigabytes
You're creating a matrix not a vector.
Use:
zeros(1e5,1)

추가 답변 (1개)

Andrey Babkin
Andrey Babkin 2011년 9월 11일
Thanks a lot. I was in panic :)
Как говорится, дело было не в бобине....

카테고리

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

태그

Community Treasure Hunt

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

Start Hunting!

Translated by