Main Content

Erstellen oder Löschen eines Fortran-Arrays

Erstellen eines Arrays mit einem bestimmten Typ und zugewiesenem bzw. freiem Speicher

Erstellen Sie mithilfe der mxCreate*-Funktionen MATLAB®-Arrays. Weisen Sie mithilfe der Funktionen mxCalloc, mxMalloc und mxRealloc dynamisch Speicher hinzu.

Sie weisen Speicher zu, sobald Sie eine mxCreate*-Funktion verwenden oder die Funktion mxCalloc sowie zugehörige Funktionen aufrufen. Mit der Funktion mxDestroyArray geben Sie von den mxCreate*-Funktionen zugewiesenen Speicher frei. Mit der Funktion mxFree geben Sie von der mxCalloc-Funktion und zugehörigen Funktionen zugewiesenen Speicher frei.

Fortran-Funktionen

alle erweitern

mxCreateDoubleMatrix2-D, double-precision, floating-point array
mxCreateDoubleScalarScalar, double-precision array initialized to specified value
mxCreateNumericMatrix2-D numeric matrix
mxCreateNumericArrayN-D numeric array
mxMakeArrayRealConvert complex mxArray to real, preserving real data
mxMakeArrayComplexConvert real mxArray to complex, preserving real data
mxCreateString1-D array initialized to specified string
mxCreateCharMatrixFromStrings2-D mxChar array initialized to specified value
mxCreateCharArrayN-D mxChar array
mxCreateSparse2-D sparse array
mxCreateStructMatrix2-D structure array
mxCreateStructArrayN-D structure array
mxCreateCellMatrix2-D cell array
mxCreateCellArrayN-D cell array
mxDestroyArrayFree dynamic memory allocated by MXCREATE* functions
mxDuplicateArrayMake deep copy of array
mxCallocAllocate dynamic memory for array, initialized to 0, using MATLAB memory manager
mxMallocAllocate uninitialized dynamic memory using MATLAB memory manager
mxReallocReallocate dynamic memory using MATLAB memory manager
mxFreeFree dynamic memory allocated by mxCalloc, mxMalloc, mxRealloc, mxArrayToString, or mxArrayToUTF8String functions