Define Pointer in Bus (structure)

2 Ansichten (letzte 30 Tage)
Karthikeyan S
Karthikeyan S am 6 Nov. 2023
Hi,
How to implement the below structure in simulink
typedef struct{
int a;
int *b;
int *c;
}

Antworten (1)

Benjamin Thompson
Benjamin Thompson am 21 Jan. 2024
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.

Kategorien

Mehr zu Simulink Functions finden Sie in Help Center und File Exchange

Produkte


Version

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by