Tutorial: C mex matrix demo

版本 1.0.0.0 (134.3 KB) 作者: Nick Clark
Index matrix in C like you would do in MATLAB!
4.0K 次下载
更新时间 2007/12/21

查看许可证

This short tutorial illustrates basic numerical matrix computation in C. I encourage any comments from expirienced mex programmers for style improvement.

This is a nice little function to demonstrate how you can interface MATLAB and C style matricies. There is some example code included showing how you can index your C matricies like you can in MATLAB and how you can use a little function to pass data between them. The actual function is trivial, but illustrates different methods of handling multi-dimensional data using pointers.

This latest version includes updates and copies emails regarding different methods from James Tursa.

引用格式

Nick Clark (2024). Tutorial: C mex matrix demo (https://www.mathworks.com/matlabcentral/fileexchange/17970-tutorial-c-mex-matrix-demo), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R2007a
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Earth, Ocean, and Atmospheric Sciences 的更多信息

Community Treasure Hunt

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

Start Hunting!
版本 已发布 发行说明
1.0.0.0

* New files added
* PDF instructions and email contributions from other authors added.