Using Pointer in Simulink function

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
  1. Create a Simulink function with input and output arguments
  2. Right click the block and navigate to C/C++ code --> C/C++ Function Interface
  3. 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://ww2.mathworks.cn/matlabcentral/fileexchange/116510-using-pointer-in-simulink-function), MATLAB Central File Exchange. 检索时间: .

标签

添加标签

Add the first tag.

一般信息

MATLAB 版本兼容性

  • 兼容任何版本

平台兼容性

  • Windows
  • macOS
  • Linux
版本 已发布 发行说明 Action
1.0.0