How I can find the connection between two blocks of simulink from matlab?
58 views (last 30 days)
Show older comments
Hi everybody, I have a problem and I have not found a solution until now. I have, for example, two blocks on simulink, a block "From" connected to an block "Goto", but in this case I don't know it but the only things I know is that there is the block "From" in that simulink. How can I find, from matlab, the connection between these two block? There is a command from matlab that return this information? I tried with "get_param" but doesn't work! Thank you
4 Comments
Accepted Answer
Azzi Abdelmalek
on 16 Dec 2013
Edited: Azzi Abdelmalek
on 16 Dec 2013
To get the blocks that are connected to your block block1
b=get_param('your_model/block1','PortConnectivity')
More Answers (1)
Shishir Dwivedi
on 11 Feb 2021
Can you please check the Finding Model utility on File Exchange, this APP will allow you to create custom dataset for your models, wherein you can get the block conectivity patterns as well.
Best Regards,
Shishir.
See Also
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!