Main Content

C with MATLAB

Directly call C library functionality from MATLAB® using loadlibrary and calllib or write C programs that call MATLAB functions using mxArray to access or create MATLAB variables in C

MATLAB provides multiple interfaces to C and C++ language programs.

Note

C++ interfaces are recommended over C-only versions. For more information, see C++ with MATLAB.

The recommended way to write C/C++ code to work with MATLAB data is to use the MATLAB Data API for C++. The MATLAB C Matrix API has limited C++ language support.

Categories

Related Information