How to define a struct variable like in C with Matlab

I'm currently working on a model which I modelize with stateflow simulink. I have numerous struct variable that I want to set up within my model but I cannot figure out how can achieve that with simulink matlab. I figured that I can use int, double, u_int, boolean, etc ... but how about if I want to customize my variable to be heteregeneous ?
Can anyone propose an idea to do that ?
Thanks in advance

답변 (1개)

Les Beckham
Les Beckham 2015년 2월 23일

0 개 추천

To pass signals that act like a C struct in a Simulink model you need to use 'bus' signals. Check the documentation.

카테고리

도움말 센터File Exchange에서 Event Functions에 대해 자세히 알아보기

제품

질문:

2015년 2월 20일

답변:

2015년 2월 23일

Community Treasure Hunt

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

Start Hunting!

Translated by