mxArrayIndexingClas​s

mxArray indexing class for mex-file programming

이 제출물을 팔로우합니다

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][...]

인용 양식

Mirko Kunze (2026). mxArrayIndexingClass (https://kr.mathworks.com/matlabcentral/fileexchange/37741-mxarrayindexingclass), MATLAB Central File Exchange. 검색 날짜: .

카테고리

Help CenterMATLAB Answers에서 Matrix Indexing에 대해 자세히 알아보기

일반 정보

MATLAB 릴리스 호환 정보

  • 모든 릴리스와 호환

플랫폼 호환성

  • Windows
  • macOS
  • Linux
버전 퍼블리시됨 릴리스 정보 Action
1.0.0.0