mxArrayIndexingClas​s

mxArray indexing class for mex-file programming
185 Downloads
Aktualisiert 6. Aug 2012

Lizenz anzeigen

In multidimensional MATLAB-arrays, the least significant index comes first and indexing is one-based. In C++, the least significant index goes last and indexing is zero-based. This inconsistency causes confusion and complications when creating mex-files, which have to deal with both conventions, especially for higher dimensions.

This class is an attempt to offer convenient MATLAB-like multidimensional array access from C++ and to easily convert between the two formats.

Features:
- multidimensional array access with (almost) MATLAB syntax directly from C++
- type check between MATLAB and C++
- arbitrary number of dimensions
- supports complex data
- rearrangement of array elements in memory in order to make M(i,j,k,...) similar to M[i-1][j-1][k-1][...]

Zitieren als

Mirko Kunze (2026). mxArrayIndexingClass (https://de.mathworks.com/matlabcentral/fileexchange/37741-mxarrayindexingclass), MATLAB Central File Exchange. Abgerufen.

Kompatibilität der MATLAB-Version
Erstellt mit R2011b
Kompatibel mit allen Versionen
Plattform-Kompatibilität
Windows macOS Linux
Kategorien
Mehr zu Matrix Indexing finden Sie in Help Center und MATLAB Answers
Version Veröffentlicht Versionshinweise
1.0.0.0