close
use mxGetData
ex 1. char array pointer
in Matlab code (caller):
use data type int8 for the passed array AA
in MEX C code (callee):
char* AA = (char*) mxGetData(prhs[0]);
ex 2. float array pointer
in Matlab code (caller):
use data type single for the passed array AA
in MEX C code (callee):
float* AA = (float*) mxGetData(prhs[0]);
全站熱搜