主要内容

clibgen.api

R2026b

Summary of programmatic workflow objects for publishing MATLAB interface to C/C++ library

Since R2026b

Description

Use these objects to configure, customize, and build a MATLAB® interface to a C or C++ shared library. If you already have a built MATLAB interface, then see Call Functions in C/C++ Compiled Library.

Typically, you use clibgen.api.InterfaceConfiguration to specify the interface configuration and clibgen.api.InterfaceDefinition to inspect, customize, and build the generated interface definition.

Classes

clibgen.api.InterfaceConfiguration Specify configuration for generating MATLAB interface to C/C++ library
clibgen.api.InterfaceDefinitionInspect, customize, and build MATLAB interface definition for C/C++ library
clibgen.api.ClassDefinitionMATLAB definition for C++ class or struct
clibgen.api.ConstructorDefinitionMATLAB definition for C++ class constructor
clibgen.api.MethodDefinitionMATLAB definition for C++ class method
clibgen.api.PropertyDefinitionMATLAB definition for C++ property
clibgen.api.FunctionDefinitionMATLAB definition for C++ function
clibgen.api.EnumDefinitionMATLAB definition for C++ enumeration
clibgen.api.FunctionTypeDefinitionMATLAB definition for C function pointer or std::function
clibgen.api.OpaqueTypeDefinitionMATLAB definition for void* argument
clibgen.api.InputArgumentDefinitionMATLAB definition for input argument in C++ function or method
clibgen.api.OutputArgumentDefinitionMATLAB definition for return type in C++ function or method
clibgen.api.UnsupportedClassUnsupported class in MATLAB interface to C/C++ library
clibgen.api.UnsupportedFunctionUnsupported function in MATLAB interface to C/C++ library
clibgen.api.UnsupportedMethodUnsupported method in MATLAB interface to C/C++ library
clibgen.api.UnsupportedEnumUnsupported enumeration in MATLAB interface to C/C++ library
clibgen.api.UnsupportedPropertyUnsupported property in MATLAB interface to C/C++ library

Version History

Introduced in R2026b