Number of bytes required to store each data element
For a complex
mxArray built with the interleaved complex API,
mxGetElementSize returns twice the value that the function in the
separate complex API returns.
#include "fintrf.h" mwPointer mxGetElementSize(pm) mwPointer pm
Pointer to an
Number of bytes required to store one element of the specified
mxArray, if successful. Returns 0 on failure. The primary reason
for failure is that
pm points to an
an unrecognized class. If
pm points to a cell or structure, then
mxGetElementSize returns the size of a pointer. The function
does not return the size of all the elements in each cell or structure field.
mxGetElementSize to determine the number of bytes in each
data element of the
mxArray. For example, if the MATLAB® class of an
mxArray stores each data element as a 16-bit (2-byte) signed
mxGetElementSize is helpful when using a non-MATLAB routine to manipulate data elements.
Fortran does not have an equivalent of
mwPointer is a preprocessor macro
that provides the appropriate Fortran type. The value returned by
this function, however, is not a pointer.