Stateflow symbol manager organization

3 views (last 30 days)
Alessandro Bertucci
Alessandro Bertucci on 29 Oct 2021
Answered: Yukthi S on 21 Feb 2024
In the sf_tetris2 model example the symbols of the chart are organized by state and can be hidden/shown cliking on the state drop down option.
In my model all the symbols are not organized according to state and I don't seem to find an option to do so.
I've created the symbols eather in the top chart or in sub-charts but the issue remains.
What I'm doing wrong?

Answers (1)

Yukthi S
Yukthi S on 21 Feb 2024
Hi Alessandro,
I figured out that you were not able to organise the symbols according to their state.
By default,all the symbols are organized according to their states ,but if you want to re-arrange some symbols under certain states,you can do it using the Model Explorer.
For proper understanding, here I am considering another example in Stateflow.
1.You can open this example by typing the below command in the command window:
openExample('stateflow/ModelingACdPlayerradioUsingStateTransitionTableExample')
2.Open the "CdPlayerModeManager" chart which also opens up the Symbol Manager. Go to the Tools section and open Model Explorer.
3.Select “RadioReq”,right click on it and cut the symbol.
4.Go to “Eject” and paste the symbol.
5.If you go back again to the Symbol manager,you can see “RadioReq” is listed under Eject.
I hope this resolves the issue.

Categories

Find more on Complex Logic in Help Center and File Exchange

Products


Release

R2018b

Community Treasure Hunt

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

Start Hunting!