matlab mxsetdata函数语法发表matlab mxsetdata函数相关文章
mxSetData (C and Fortran)
Set pointer to real numeric data elements in array
mxSetData is like mxSetPr, except that in C, its second argument is a void *. Use this function on numeric arrays with contents other than double.
This function does not free any memory allocated for existing data that it displaces. To free existing memory, call mxFree on the pointer returned by mxGetData before you call mxSetData.
See the following examples in matlabroot/extern/examples/refbook.