How can tracks control flow in Simulink model???
7 views (last 30 days)
Show older comments
Hi all,
I want to list all control flow in the model. But if i choose 1 milestone is output block, and find forward block via line connection, it is very slow and long. I need a algorithm.
Each control flow is array of block and line handles, starting from selected block.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1524981/image.png)
There are many flows in flowing model, but examples only 3. So output will be matrix. Please help, Many thanks
1: ![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1524986/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1524986/image.png)
2: ![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1524991/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1524991/image.png)
3: ![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1524996/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1524996/image.png)
0 Comments
Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!