Using Pointer in Simulink function
Versión 1.0.0 (20,9 KB) por
Muthukumar Ganesan
Model explains how to use a pointer arguments in a C/C++ generated code from Simulink function
Objective: To use pointer arguments in auto generated code from Simulink.
Following steps are implemented in the Simulink model
- Create a Simulink function with input and output arguments
- Right click the block and navigate to C/C++ code --> C/C++ Function Interface
- Configure C/C++ Return Argument to Void, this modifies all the output arguments defined in simulink function to pointer
Citar como
Muthukumar Ganesan (2025). Using Pointer in Simulink function (https://es.mathworks.com/matlabcentral/fileexchange/116510-using-pointer-in-simulink-function), MATLAB Central File Exchange. Recuperado .
Compatibilidad con la versión de MATLAB
Se creó con
R2018b
Compatible con cualquier versión
Compatibilidad con las plataformas
Windows macOS LinuxEtiquetas
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Descubra Live Editor
Cree scripts con código, salida y texto formateado en un documento ejecutable.
| Versión | Publicado | Notas de la versión | |
|---|---|---|---|
| 1.0.0 |