You can generate C code from your MATLAB and Simulink model designs. Some Communications Toolbox™ blocks and System objects provide support for C code generation when used with MATLAB Coder™.
Prepare MATLAB code for code generation and generate C-MEX code and a C executable.
Build an executable and run the executable within MATLAB.
Communications Toolbox related System objects and functions that support code generation.