使用mex进行混合编程的一些注意事项
2013-09-05 13:26
323 查看
1、mxGetPr的使用:
Use mxGetPr on arrays of type double only. Use mxIsDouble to validate the mxArray type. For other mxArray types, use mxGetData.2、mxGetData的使用:
In C, mxGetData returns a void pointer (void *). Since void pointers point to a value that has no type, you must cast the return value to the pointer type that matches the type specified by pm. To see how MATLAB® types map totheir equivalent C types, see the table on the mxClassID reference page.
相关文章推荐
- 使用mex进行混合编程的一些注意事项
- 使用串口COM进行双机调试的一些注意事项
- 使用windows API进行编程时候的注意事项
- 关于使用GHOST进行磁盘对拷整盘镜像以及镜像恢复的一些注意事项
- Flash 与 FlashBuild 结合使用时的一些注意事项
- 在 Android 中使用 Kotlin 的一些注意事项
- 缓存使用的一些注意事项
- GridView 使用的一些注意事项
- [Android] 使用SVN进行版本控制的注意事项
- Android Fragment 的使用,一些你不可不知的注意事项
- C#多线程编程之:lock使用注意事项
- C# 使用DateTimePicker与数据库中类型为datetime的数据作比较的一些注意事项
- ADO.NET Entity Framework (实体模型框架) 一些使用的注意事项
- 使用WPF动画编程的几点注意事项[转]
- 使用jQuery的一些注意事项总结(持续更新......)
- Android控件使用—EditText的一些注意事项
- Elastic-Job使用时的一些注意事项
- 使用commons-fileupload包进行大文件上传注意事项
- 『编程练习』九九乘法表 与 使用文件对象的注意事项
- openMP编程过程中的一些注意事项