Llamar a funciones de MATLAB usando REST
R2026bPuede crear servicios de funciones REST de MATLAB que permitan a aplicaciones cliente llamar a funciones de MATLAB definidas por el usuario mediante el protocolo HTTPS. El servicio habilita la comunicación entre los programas y MATLAB, independientemente de la plataforma y el entorno de ejecución. Puede llamar a funciones de MATLAB personalizadas usando cualquier lenguaje de programación o aplicación que pueda hacer una llamada REST, ya sea localmente o de forma remota.
Solo usted puede ejecutar funciones en su instancia de MATLAB.
Objetos
RESTFunctionService | Service for calling MATLAB functions from client applications (Desde R2024a) |
ClientRequestInfo | Client to function service HTTPS request information (Desde R2024a) |
RESTFunctionConnector | MATLAB to client application connection (Desde R2024a) |
Funciones
restFunctionServices | List of function services in current MATLAB session (Desde R2024a) |
Clase de cliente de Python
matlab.rest_function_service.client.MWHttpClient | Python client interface for calling MATLAB REST function service |
Referencia del servicio REST para la ejecución de funciones de MATLAB
POST Synchronous
Request | Make synchronous request to MATLAB REST function service and wait for response |
Temas
- 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. (Desde 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.