You can generate executable C/C++ code and MEX functions from code.
Generate MEX Function to Estimate Directions of Arrival
Estimate signal directions of arrival.
Generate MEX Function Containing Persistent System Objects
Make System Objects persistent.
Using code generation with the Phased Array System Toolbox™.
Functions and System Objects Supported for C/C++ Code Generation
These functions and System objects support C/C++ code generation.