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]);  

arrow
arrow
    全站熱搜

    bamil 發表在 痞客邦 留言(0) 人氣()