MATLAB-Coder: Unterschied zwischen den Versionen

Aus HSHL Mechatronik
Zur Navigation springen Zur Suche springen
Keine Bearbeitungszusammenfassung
Zeile 10: Zeile 10:
# Preallocate arrays before indexing.
# Preallocate arrays before indexing.
# Verify MATLAB Coder support.
# Verify MATLAB Coder support.
To see what functions are supported for code generation, you can filter by C/C++ code generation in the documentation. Use the navigation on the left to find supported functions for different toolboxes.  
To see what functions are supported for code generation, you can [https://www.mathworks.com/help/referencelist.html?type=function&capability=codegen filter by C/C++ code generation] in the documentation. Use the navigation on the left to find supported functions for different toolboxes.
 
== Nützliche Artikel ==
== Nützliche Artikel ==
* [https://www.mathworks.com/help/coder/gs/averaging-filter.html Generate C/C++ Code from a MATLAB Function]
* [https://www.mathworks.com/help/coder/gs/averaging-filter.html Generate C/C++ Code from a MATLAB Function]

Version vom 8. September 2024, 13:29 Uhr

Abb. 1: MATrix LABoratory (MATLAB®)
Autor: Prof. Dr.-Ing. Schneider

Code Generation Requirements

The three most common code generation issues are solved with these preparation steps:

  1. Define function input variables.
  2. Preallocate arrays before indexing.
  3. Verify MATLAB Coder support.

To see what functions are supported for code generation, you can filter by C/C++ code generation in the documentation. Use the navigation on the left to find supported functions for different toolboxes.

Nützliche Artikel