创建 MATLAB Production Server Python 客户端
您可以从 MATLAB® 客户端应用程序调用部署到 MATLAB Production Server™ 的 Python® 函数。要创建 Python 客户端:
安装 MATLAB Production Server 客户端运行时文件。
有关详细信息,请参阅安装 MATLAB Production Server Python 客户端。
与 MATLAB 程序员协商,收集组成应用程序中服务的 MATLAB 函数签名。
编写 Python 代码来实例化与 MATLAB Production Server 实例的连接。
有关创建连接的不同方法,请参阅创建客户端连接。
为函数输入和输出创建所需的 MATLAB 数据。
有关使用数组作为函数参量,请参阅matlab Python 模块。对于其他数据类型,请参阅在 MATLAB Production Server 和 Python 之间传递数据。
评估 MATLAB 函数。
有关调用已部署的 MATLAB 函数的方法的更多信息,请参阅 调用打包的 MATLAB 函数。
关闭客户端连接。
另请参阅
matlab.production_server.client.MWHttpClient