Chiamata delle funzioni di MATLAB utilizzando REST
R2026bÈ possibile creare servizi di funzioni REST MATLAB che consentono alle applicazioni client di chiamare funzioni di MATLAB definite dall'utente tramite il protocollo HTTPS. Il servizio consente la comunicazione tra i programmi e MATLAB, indipendentemente dalla piattaforma e dall'ambiente di esecuzione. È possibile chiamare le funzioni personalizzate di MATLAB utilizzando qualsiasi linguaggio di programmazione o applicazione in grado di effettuare una chiamata REST, in locale o in remoto.
Solo l'utente può eseguire funzioni sulla propria istanza di MATLAB.
Oggetti
RESTFunctionService | Service for calling MATLAB functions from client applications (Da R2024a) |
ClientRequestInfo | Client to function service HTTPS request information (Da R2024a) |
RESTFunctionConnector | MATLAB to client application connection (Da R2024a) |
Funzioni
restFunctionServices | List of function services in current MATLAB session (Da R2024a) |
Classe client Python
matlab.rest_function_service.client.MWHttpClient | Python client interface for calling MATLAB REST function service |
Riferimento del servizio REST per l'esecuzione di funzioni di MATLAB
POST Synchronous
Request | Make synchronous request to MATLAB REST function service and wait for response |
Argomenti
- 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. (Da 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.