Define Pointer in Bus (structure)

1 visualización (últimos 30 días)
Karthikeyan S
Karthikeyan S el 6 de Nov. de 2023
Respondida: Benjamin Thompson el 21 de En. de 2024
Hi,
How to implement the below structure in simulink
typedef struct{
int a;
int *b;
int *c;
}

Respuestas (1)

Benjamin Thompson
Benjamin Thompson el 21 de En. de 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.

Categorías

Más información sobre Simulink Functions en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by