How to pass an integer array from matlab to mex?

倖福魔咒の 提交于 2019-12-06 02:55:12

Here's a table is of equivalent C and MATLAB data types to use when deciding how to pass data.

Source.

Since you are dealing with an int * in the MEX file, you should be passing int32 MATLAB data. Note however that int in C is not guaranteed to be 32-bit, but seems to be so on modern systems.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!