Define Pointer in Bus (structure)

Hi,
How to implement the below structure in simulink
typedef struct{
int a;
int *b;
int *c;
}

回答 (1 件)

Benjamin Thompson
Benjamin Thompson 2024 年 1 月 21 日

0 投票

Simulink busses cannot use pointers or references. Can you use an array of integers?
int b[10];
Simulink must know the size of the bus in memory so that a signal of this bus type can be connected betwee blocks.

カテゴリ

ヘルプ センター および File ExchangeBlock and Blockset Authoring についてさらに検索

製品

リリース

R2022b

質問済み:

2023 年 11 月 6 日

回答済み:

2024 年 1 月 21 日

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by