Define Pointer in Bus (structure)

조회 수: 18 (최근 30일)
Karthikeyan S
Karthikeyan S 2023년 11월 6일
답변: Benjamin Thompson 2024년 1월 21일
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에서 Block and Blockset Authoring에 대해 자세히 알아보기

제품


릴리스

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by