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.