首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > 编程 >

施用mex进行混合编程的一些注意事项

2013-09-07 
使用mex进行混合编程的一些注意事项1、mxGetPr的使用:Use mxGetPr on arrays of type double only. Use mxI

使用mex进行混合编程的一些注意事项
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 to their equivalent C types, see the table on the mxClassID reference page.

热点排行