[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Unknown error and crash

From: Bill Denney
Subject: Re: Unknown error and crash
Date: Sun, 17 Sep 2006 15:04:22 -0400 (EDT)

On Sun, 17 Sep 2006, the_verge wrote:

I did some diagnostic debugging, so I have a little more info about the
problem I've been having.  Here's an update on my problem:

I am running Octave version 2.1.72, on SimplyMEPIS 6.0 linux.

The error I am getting is a "memory exhausted" error.  It occurs in the code
when I am constructing a matrix that is 744x5.  I am constructing the matrix
element by element, with a nested for loop.  It makes it through most of the
matrix (to the third column), and then it quits all of the sudden with a
"memory exhausted" error.

Generally if you're getting a memory exhausted error while building a matrix that is being built element-by-element, it could possibly be helpful to pre-allocate the space for the matrix, i.e.

x = zeros (744,5);
for i = 1:744
  for j = 1:5
    x = something(i,j);

There is a chance that this would fix the errors.


Common sense is what tells you that the world is flat.
  -- unknown

reply via email to

[Prev in Thread] Current Thread [Next in Thread]