Using Pointer in Simulink function
バージョン 1.0.0 (20.9 KB) 作成者:
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
引用
Muthukumar Ganesan (2026). Using Pointer in Simulink function (https://jp.mathworks.com/matlabcentral/fileexchange/116510-using-pointer-in-simulink-function), MATLAB Central File Exchange. 取得日: .
MATLAB リリースの互換性
作成:
R2018b
すべてのリリースと互換性あり
プラットフォームの互換性
Windows macOS Linuxタグ
| バージョン | 公開済み | リリース ノート | |
|---|---|---|---|
| 1.0.0 |