If you have functions written in the C or C++ programming language, you can call them from MATLAB by creating MEX files. For information about running an existing MEX file, see Call MEX File Functions.
To use MATLAB from within the C/C++ programming environment, use one of the MATLAB engine applications. The engine API for C++ uses features from C++11 with the MATLAB Data API. Alternatively, use the engine API for C and Fortran with the C Matrix Library API.
Using any of these features requires a knowledge of the C or C++ programming language.