This is machine translation

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

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

mwIndex (C and Fortran)

Type for index values


mwIndex is a type that represents index values, such as indices into arrays. Use this function for cross-platform flexibility. By default, mwIndex is equivalent to int in C. When using the mex -largeArrayDims switch, mwIndex is equivalent to size_t in C. In Fortran, mwIndex 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, mwIndex is a preprocessor macro. The Fortran header file containing this type is:

#include "fintrf.h"

Introduced before R2006a

Was this topic helpful?