Using Pointer in Simulink function
Version 1.0.0 (20,9 ko) par
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
Citation pour cette source
Muthukumar Ganesan (2026). Using Pointer in Simulink function (https://fr.mathworks.com/matlabcentral/fileexchange/116510-using-pointer-in-simulink-function), MATLAB Central File Exchange. Extrait(e) le .
Compatibilité avec les versions de MATLAB
Créé avec
R2018b
Compatible avec toutes les versions
Plateformes compatibles
Windows macOS LinuxTags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Découvrir Live Editor
Créez des scripts avec du code, des résultats et du texte formaté dans un même document exécutable.
| Version | Publié le | Notes de version | |
|---|---|---|---|
| 1.0.0 |