Main Content

mwSize (C)

C type for mxArray 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 size_t. mwSize is an unsigned type, meaning a nonnegative integer.

When using the mex -compatibleArrayDims switch, mwSize is equivalent to int.

The C header file containing this type is:

#include "matrix.h"

Version History

Introduced before R2006a