External Interfaces |
Data Conversion
This section contains information on how MATLAB handles conversion of argument data and how to convert data yourself when you decide that would be more efficient.
Under most conditions, data passed to and from external library functions is automatically converted by MATLAB to the data type expected by the external function. However, you may choose, at times, to convert some of your argument data manually. Circumstances under which you might find this advantageous are
libstruct
function creates a MATLAB structure modeled from a C structure taken from the library.
double **
), you will need to pass a reference (constructed by the libpointer
function) rather than have MATLAB convert the data type automatically.
Passing References | Primitive Types |
© 1994-2005 The MathWorks, Inc.