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 an
emxArray
.Packaging of all required generated files for relocation to another project, code base, development environment, or machine.
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 |
Examples and How To
- Generate a C Static Library Using the MATLAB Coder App
- Generate a C Static Library at the Command Line
- Call a C Static Library Function from C Code
- Call a C/C++ Static Library Function from MATLAB Code
- Generate a C Executable Using the MATLAB Coder App
- Generate a C Executable at the Command Line
- Generate a C Dynamically Linked Library Using the MATLAB Coder App
- Generate a C Dynamic Library at the Command Line
- Use a C Dynamic Library in a Microsoft Visual Studio Project
- Call Generated C/C++ Functions
- Specify main Functions
- Package Code for Other Development Environments
- Incorporate Generated Code Using an Example Main Function
- Use an Example C Main in an Application
- Troubleshoot Failures in Deployed Code
Was this topic helpful?