REST を使用した MATLAB 関数の呼び出し
R2026bクライアント アプリケーションが HTTPS プロトコルを介してユーザー定義の MATLAB 関数を呼び出せるようにする MATLAB REST 関数サービスを作成できます。このサービスを使用すると、プラットフォームや実行環境に関係なく、プログラムと MATLAB の間で通信できるようになります。ローカルまたはリモートで REST 呼び出しを行うことができる任意のプログラミング言語またはアプリケーションを使用して、カスタム MATLAB 関数を呼び出すことができます。
本人のみが自分の MATLAB インスタンスで関数を実行できます。
オブジェクト
RESTFunctionService | Service for calling MATLAB functions from client applications (R2024a 以降) |
ClientRequestInfo | Client to function service HTTPS request information (R2024a 以降) |
RESTFunctionConnector | MATLAB to client application connection (R2024a 以降) |
関数
restFunctionServices | List of function services in current MATLAB session (R2024a 以降) |
Python クライアント クラス
matlab.rest_function_service.client.MWHttpClient | Python client interface for calling MATLAB REST function service |
MATLAB 関数実行のための REST サービス リファレンス
POST Synchronous
Request | Make synchronous request to MATLAB REST function service and wait for response |
トピック
- Create MATLAB REST Function Services
Enable licensed MATLAB users to make RESTful function calls to their MATLAB instance.
- Call MATLAB Functions from External Languages Using REST
Call user-defined MATLAB functions from Java®, C++, and other external language clients using the synchronous request-response model.
- Call MATLAB Functions from Python Using REST
Call user-defined MATLAB functions from Python® clients using native Python data types and the synchronous request-response model. (R2026b 以降)
- JSON Representation of MATLAB Data Types
Represent supported MATLAB data types in JSON.
- Data Type Conversions Between MATLAB REST Function Services and Python
Learn how the MATLAB REST function service converts data types passed between Python and MATLAB.