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
引用格式
Muthukumar Ganesan (2024). Using Pointer in Simulink function (https://www.mathworks.com/matlabcentral/fileexchange/116510-using-pointer-in-simulink-function), MATLAB Central File Exchange. 检索来源 .
MATLAB 版本兼容性
创建方式
R2018b
兼容任何版本
平台兼容性
Windows macOS Linux标签
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!版本 | 已发布 | 发行说明 | |
---|---|---|---|
1.0.0 |