libstruct
Convert MATLAB structure to C-style structure for use with shared C library
Description
creates S = libstruct(structtype)NULL pointer to MATLAB®
libstruct object S.
creates pointer initialized to S = libstruct(structtype,mlstruct)mlstruct.
Examples
Input Arguments
Output Arguments
Limitations
Use with libraries that are loaded using the
loadlibraryfunction.You can only use the
libstructfunction on scalar structures.When converting a MATLAB structure to a
libstructobject, the structure must adhere to the requirements listed in Structure Argument Requirements.
Tips
If a function in the shared library has a structure argument, use
libstructto create the argument. Thelibstructfunction creates a C-style structure that you pass to functions in the library. You handle this structure in MATLAB as you would a true MATLAB structure.
Version History
Introduced before R2006a