Main Content

Code Generation and Deployment

Generate code or standalone executables

After you develop your application using卫星通信工具箱features, you can generate portable C/C++ source code, standalone executables, or standalone applications from your MATLAB®code. With code generation, you can:

  • Run yoursimulationon machines that do not have MATLAB installed.

  • Speed up processing while you work in the MATLAB environment.

  • Incorporate your algorithms into legacy code.

This table compares deployment characteristics ofMATLAB Compiler™andMATLAB Coder™functionality. Use this table to decide how to deploy your MATLAB code.

Deployment Characteristic UsingMATLAB CompilerFunctionality UsingMATLAB CoderFunctionality
Output Nonreadable shared libraries. Portable and readable C source code.
Library dependency MATLABRuntime.

None.

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.

For an alphabetized list of features supporting C/C++ code generation, see卫星通信工具箱– Functions and Objects Filtered by C/C++ Code Generation.

Topics

What is C Code Generation from MATLAB?

Introduces code generation support.