Skip to content

libstruct

ffi · scripts/ffi/libstruct.m

LIBSTRUCT  Convert a MATLAB struct to a C-style libstruct object.

  S = libstruct (structtype)
  S = libstruct (structtype, mlstruct)

  Matches MATLAB R2026a: constructs lib.<structtype> (see libstruct docs
  and the shrlibsample c_struct example).  The structure type must have
  been registered by loadlibrary (or ship as lib.c_struct).