External Language Interfaces
External language and library interfaces, including Python®, Java®, C, C++, .NET, and Web services
MATLAB®provides a flexible, two-way integration with other programming languages, allowing you to reuse legacy code. To help you choose a MATLAB feature for your application, seeIntegrate MATLAB with External Programming Languages and Systems.
Calling Libraries in Other Languages
- C++ Libraries in MATLAB
Directly call C++ library functionality from MATLAB - C Libraries in MATLAB
Directly call C library functions from MATLAB - MEX File Functions
Call C/C++ or Fortran MEX file functions from MATLAB - Java Libraries in MATLAB
Access Java libraries from MATLAB - Python Libraries in MATLAB
Directly call Python functionality from MATLAB - .NET Libraries in MATLAB
Access .NET libraries from MATLAB - COM Objects in MATLAB
Access COM components from MATLAB
Calling Web Services
- HTTP Interface
Communicate with Web service from MATLAB using HTTP (Hypertext Transfer Protocol) - WSDL (Web Services Description Language)
Communicate with Web service from MATLAB using WSDL (Web Services Description Language)
CallingMATLABfrom Other Languages
- Choosing a MATLAB API for Your Application
Determine which MATLAB API to use based on your coding environment - Calling MATLAB from C++
写modern C++ programs that work with MATLAB - Calling MATLAB from Java
写Java programs that work with MATLAB - Calling MATLAB from Python
用MATLAB编写的Python程序 - Calling MATLAB from C
写C programs that work with MATLAB R2017b and earlier, usingmxArray
- Calling MATLAB from Fortran
写Fortran subroutines that work with MATLAB - Calling MATLAB as COM Automation Server
写COM applications to work with MATLAB