Deployment Basics - MATLAB & Simulink (original) (raw)

Understand the basic workflows and requirements to deploy generated code

Binary files (libraries and executables) can be created from the app, or from the command line. Generate deployable code with an example main function to incorporate the generated binary into your application. Supporting initialization and cleanup functions are also generated for your use. Depending on the types of arrays you want to integrate into your packaged code, see the relevant pages below.

Functions

coder.ceval Call C/C++ function from generated code
coder.cinclude Include header file in generated code
packNGo Package generated code in ZIP file for relocation

Objects

coder.HardwareImplementation Hardware-specific configuration parameters for C/C++ code generation fromMATLAB code
coder.hardware Create hardware board configuration object for C/C++ code generation fromMATLAB code

Topics

Deployment Basics

Example Main

Using Generated Code

Using Dynamic Memory Allocation for an Atoms Simulation

Using Dynamic Memory Allocation for an Atoms Simulation

Generate code for a MATLAB algorithm that runs a simulation of bouncing "atoms" and returns the result after a number of iterations.