After you develop your application with MATLAB® and 5G Toolbox™, you can generate portable C/C++ source code, standalone executables, or standalone applications from your MATLAB code. With code generation, you can:
Speed up code processing while you work in the MATLAB environment.
Run your simulation on machines that do not have MATLAB installed.
Incorporate your algorithms into legacy code.
The following table compares deployment characteristics of MATLAB Compiler™ and MATLAB Coder™. Use this table to decide how to post process your MATLAB code.
|Deployment Characteristic||Using MATLAB Compiler||Using MATLAB Coder|
|Output||Nonreadable shared libraries that run against MATLAB Runtime libraries||Portable and readable C source code that can be compiled into shared libraries|
|Library dependency||Requires MATLAB Runtime||None. All toolbox function and System object™ code is visible|
|Supported platforms for deployment||Windows®, Mac, and Linux®||Any platform that supports ANSI®/ISO® C/C++ code|
|Intellectual property protection||Packaged code is encrypted||Code is not encrypted. You can protect your IP by generating shared libraries instead of readable code|
|Algorithm acceleration||Same speed as MATLAB||Potentially faster, depending on the algorithm|
|MATLAB graphics||Supported||Not supported|
Introduces 5G Toolbox code generation support.
List of 5G Toolbox functions and System objects with code generation support