mxArrayIndexingClas​s

版本 1.0.0.0 (6.0 KB) 作者: Mirko Kunze
mxArray indexing class for mex-file programming
185.0 次下载
更新时间 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 (2024). mxArrayIndexingClass (https://www.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