The Math Forum

Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Math Forum » Discussions » Software » comp.soft-sys.matlab

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: Memeory leak in mat->C compiler
Replies: 1   Last Post: Nov 7, 1996 6:19 PM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Thomas Mejer Hansen

Posts: 2
Registered: 12/11/04
Memeory leak in mat->C compiler
Posted: Nov 4, 1996 4:22 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

I guess this has been discussed before.
I've just begun using the compiler fascility in MATLAB. I run MATLAB-code
that models the elastic wave-equation.
The main code is a loop, where ceratin variables are updated at each
loop/iteration. I have declared all the variables that I use in the LOOP.
My problem : When I call a function file during the loop, where I have to
declare a three 4 byte integers, MATLAB seems allocate new space at every
loop steps. I have to run through this loop many thousands times, so the
amount of memory used get annoying.
I've tried to use the clear-fascility, with no succes.

Is this a general problem with the MAT->C compiler ??
Any help on 'memory'-leaks in MATLAB are welcome

Thomas Mejer Hansen
Geophysical Laboratory
University of Aarhus, Denmark
mail :

Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.