mxArrayIndexingClas​s

버전 1.0.0.0 (6.04 KB) 작성자: Mirko Kunze
mxArray indexing class for mex-file programming
다운로드 수: 185
업데이트 날짜: 2012/8/6

라이선스 보기

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 (2025). mxArrayIndexingClass (https://kr.mathworks.com/matlabcentral/fileexchange/37741-mxarrayindexingclass), MATLAB Central File Exchange. 검색 날짜: .

MATLAB 릴리스 호환 정보
개발 환경: R2011b
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
카테고리
Help CenterMATLAB Answers에서 Matrix Indexing에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
버전 게시됨 릴리스 정보
1.0.0.0