Define Pointer in Bus (structure)

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

Risposte (1)

Benjamin Thompson
Benjamin Thompson il 21 Gen 2024

0 voti

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.

Categorie

Scopri di più su Block and Blockset Authoring in Centro assistenza e File Exchange

Prodotti

Release

R2022b

Richiesto:

il 6 Nov 2023

Risposto:

il 21 Gen 2024

Community Treasure Hunt

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

Start Hunting!

Translated by