Hello, i created a algoritm and it need to run some matrixs, i runned for several cases but when was necessary to run a matrix 20402x20402 after 2 hours occorred an error, about "out of memory" it is very important accomplishment this stage. There is a way to set right this?

답변 (1개)

James Tursa
James Tursa 2018년 10월 23일
편집: James Tursa 2018년 10월 23일

0 개 추천

Type the following at the command line:
dbstop if error
Then run your code. When the error occurs, the code will pause with all variables intact. Examine the sizes etc involved to figure out why your code is requesting too much memory. A numeric matrix size 2040x2040 by itself isn't going to be a problem on any modern machine, so there must be something else going on (e.g., maybe you are storing a bunch of these in a loop and you finally broke the bank, etc).

댓글 수: 1

Emilcy Felipe C de Paula
Emilcy Felipe C de Paula 2018년 10월 24일
편집: Emilcy Felipe C de Paula 2018년 10월 24일
Sorry, the size of matrix was actually 20402x20402 , i made a mistake

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

카테고리

도움말 센터File Exchange에서 Loops and Conditional Statements에 대해 자세히 알아보기

제품

릴리스

R2016a

태그

질문:

2018년 10월 23일

편집:

2018년 10월 24일

Community Treasure Hunt

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

Start Hunting!

Translated by