Create or Delete Fortran Array - MATLAB & Simulink (original) (raw)
Main Content
Create array of specified type, allocate and free memory
Use the mxCreate*
functions to create MATLABĀ® arrays. Use the mxCalloc
,mxMalloc
, and mxRealloc
functions to allocate dynamic memory.
You allocate memory whenever you use an mxCreate*
function or when you call the mxCalloc
and associated functions. UsemxDestroyArray
to free memory allocated by themxCreate*
functions. Use mxFree
to free memory allocated by the mxCalloc
and associated functions.
Fortran Functions
Numeric
Character
Sparse
Structure
Cell
Memory Management
mxDestroyArray | Free dynamic memory allocated by MXCREATE* functions |
---|---|
mxDuplicateArray | Make deep copy of array |
mxCalloc | Allocate dynamic memory for array, initialized to 0, using MATLAB memory manager |
mxMalloc | Allocate uninitialized dynamic memory using MATLAB memory manager |
mxRealloc | Reallocate dynamic memory using MATLAB memory manager |
mxFree | Free dynamic memory allocated by mxCalloc, mxMalloc, mxRealloc, mxArrayToString, or mxArrayToUTF8String functions |