You have the following options:
- MATLAB Compiler: To generate C/C++ shared libraries from MATLAB code.
- MATLAB Builder NE: This is an extension of MATLAB Compiler (also needs MATLAB Compiler license), and can generate COM or .NET components from MATLAB code
- MATLAB Coder: To generate standalone C/C++ code from MATLAB code (only supports a subset of MATLAB functionality.
Note that options 1 and 2 also require the distribution of the MATLAB Compiler Runtime (MCR) along with the generated binaries, while option 3 generate standalone code which doesn't need the MCR.