This is machine translation

Translated by Microsoft
Mouse over text to see original. Click the button below to return to the English verison of the page.

mwSize (C and Fortran)

Type for size values


mwSize is a type that represents size values, such as array dimensions. Use this function for cross-platform flexibility. By default, mwSize is equivalent to int in C. mwSize is an unsigned type, meaning a nonnegative integer.

When using the mex -largeArrayDims switch, mwSize is equivalent to size_t in C. In Fortran, mwSize is similarly equivalent to INTEGER*4 or INTEGER*8, based on platform and compilation flags.

The C header file containing this type is:

#include "matrix.h"

In Fortran, mwSize is a preprocessor macro. The Fortran header file containing this type is:

#include "fintrf.h"

Introduced before R2006a

Was this topic helpful?