Record the functions you see or use in matlab/c++ mixed programming matlab/c++ mixed programming API manual download address: http://download.csdn.net/detail/quincuntial/8593513
Double *MXGETPR (const Mxarray *array_ptr), obtaining real data in Mxarray, returning the starting pointer of the data
Const mwsize *mxgetdimensions (const mxarray *PM); Get a pointer to a dimension group
Mwsize mxgetnumberofdimensions (const mxarray *PM), number of dimensions obtained
Mxclassid mxgetclassid (const mxarray *PM); Get the data type of PM
void Mexerrmsgtxt (const char *errormsg); terminating the program and returning an error message
Double mxgetscalar (const mxarray *PM); Returns the real part of the first data element in an array
Mxarray *mxcreatenumericarray (mwsize ndim, const mwsize *dims,
mxclassid classid, mxcomplexity complexflag); Creates a mxarray that returns a pointer to the Mxarray
void *mxcalloc (mwsize n, mwsize size); allocating dynamic memory
void Mxfree (void *ptr); free dynamic memory