Main Content

本页翻译不是最新的。点击此处可查看最新英文版本。

使用预置的 MATLAB C++ 库接口

要调用 C++ 库中的函数,请使用 MATLAB® clib

如果您有已发布的对接 C++ 共享库的 MATLAB 接口,则可以直接在 MATLAB 中使用这些类和函数,从而在 MATLAB 和 C++ 之间来回传递数据。

函数

clibArray为 C++ 库函数创建 MATLAB clib 数组 (自 R2020a 起)
clibConvertArrayMATLAB 数值数组转换为 C++ 对象数组 (自 R2020a 起)
clibConfigurationChange execution mode of C++ library interface (自 R2023a 起)
CLibraryConfigurationC++ library interface environment information (自 R2023a 起)
clibIsNull确定 C++ 对象是否为空 (自 R2019b 起)
clibIsReadOnly确定 C++ 对象是否为只读 (自 R2019b 起)
clibReleaseMATLAB 中释放 C++ 对象
underlyingValueMATLAB 中创建的 C++ 枚举对象的基础数值

主题

疑难解答

Troubleshooting MATLAB Interface to C++ Library Issues

MATLAB searches for the library interface file on the MATLAB path.