Define Pointer in Bus (structure)

7 次查看(过去 30 天)
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
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.

类别

Help CenterFile Exchange 中查找有关 Simulink Functions 的更多信息

产品


版本

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by