clibConfiguration
Syntax
Description
MATLAB® can load an interface to a C++ library either in-process or out-of-process. Use
clibConfiguration
to change the execution mode.
libraryconfig = clibConfiguration(
returns configuration object libname
)CLibraryConfiguration
for interface to C++ library libname
.
libraryconfig = clibConfiguration(
changes the execution mode of the library. Use libname
,ExecutionMode
=ExecutionMode)ExecutionMode
to
indicate whether MATLAB loads the C++ library interface in-process or out-of-process. The setting is
persistent across different MATLAB sessions.
MATLAB loads the library when you call your library using the syntax
clib.
followed by the library
construct type. If the libraryName
ExecutionMode
is "inprocess"
,
then you cannot change the interface to the library and reload it into MATLAB. To enable making changes to the interface and reloading in the same session,
restart MATLAB, and then call
clibConfiguration(ExecutionMode="outofprocess")
.
Examples
Input Arguments
Version History
Introduced in R2023a