Main Content

Calling MATLAB from C++

Write modern C++ programs that work with MATLAB®


Functions in the MATLAB C++ APIs use the matlab::data::Array class defined in the MATLAB Data API. To work with the MATLAB mxArray data structure instead, use the C Matrix API. For more information, see Calling MATLAB from C.