Convert MATLAB structure to C-style structure for use with shared library
S = libstruct(structtype)
S = libstruct(structtype,mlstruct)
creates S
= libstruct(structtype
)NULL
pointer
to MATLAB® libstruct
object S
.
creates
pointer initialized to S
= libstruct(structtype
,mlstruct
)mlstruct
.
Use with libraries that are loaded using the loadlibrary
function.
You can only use the libstruct
function
on scalar structures.
When converting a MATLAB structure to a libstruct
object,
the structure must adhere to the requirements listed in Structure Argument Requirements.