Why am I unable to delete MEX functions from memory using the CLEAR MEX command?

18 views (last 30 days)
I am using MEX functions in my MATLAB code. However, when I try to clear the functions from MATLAB's memory using CLEAR MEX, I still see them using the INMEM function.

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 22 Jan 2010
This will occur if the MEX code has memory leaks. To resolve this issue, debug the MEX code and be sure there are no memory leaks.
For more information about debugging MEX files, see the technical note 1605:

More Answers (0)


No tags entered yet.


Community Treasure Hunt

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

Start Hunting!