Documentation

Deployment

C/C++ libraries and executables, integration into external applications

生成代码后,将生成的C/C++ code into your application as source code, static libraries, or dynamic libraries. To help you integrate the generated code into your application,MATLAB®Coder™provides:

  • An example C main function that shows how to initialize arguments, call entry-point functions, and exchange data between the entry-point functions and the rest of your application.

  • Utility functions that you use to interact with dynamically allocated arrays. A dynamically allocated array is represented as a structure type called anemxArray.

  • Packaging of all required generated files for relocation to another project, code base, development environment, or machine.

SeeUsing Generated C/C++ Code.

Functions

codegen Generate C/C++ code from MATLAB code
coder Open MATLAB Coder app
coder.ceval Call external C/C++ function
coder.cinclude Include header file in generated code
Was this topic helpful?