Memory Allocation in MATLAB
이전 댓글 표시
Two questions on the topic of memory:
1. Do the zeros() and ones() functions allocate memory dynamically? That is, are they similar to the malloc() function in C/C++?
2. Of course, if we try to allocate too much memory, the system will refuse:
>> a=zeros(1e10,1);
Out of memory. Type HELP MEMORY for your options.
I am running MATLAB in Linux. Will increasing the swap increase the size of matrix I can allocate? That is, can I increase swap to a point that a=zeros(1e10,1) will execute successfully?
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 System Composer에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!