Defining Structures in Stateflow

1 回表示 (過去 30 日間)
Dhruv
Dhruv 2013 年 10 月 8 日
I am trying to define structures to be used in Stateflow. The problem being I have a kind of nested structure.. where one of the element of the structure is a structure of the same type.. this is possible to do in C.
eg:
typedef struct btnode { int count ; int value[4] ; struct btnode *child[4] ; } ;
However, in Stateflow I need to provide the structures as simulink bus objects first which does not allow for such a bus input. The nested structure being a pointer is also a problem. My code is similar to this example code online:

回答 (0 件)

カテゴリ

Help Center および File ExchangeSimulink Functions についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by