Using the C Math Library    

Automated Versus Explicit Memory Management 

Routines in the MATLAB C Math Library return a pointer to a newly allocated mxArray. The MATLAB C Math Library provides two ways for you to manage this array memory:


 Managing Array Memory Explicit Memory Management