Delete all unconnected Lines from simulink diagram ?
Show older comments
Answer: delete_line(find_system(Execution_level, 'FindAll', 'on', 'Type', 'line', 'Connected', 'off'))
3 Comments
Nithin Kumar H M
on 27 Jul 2020
Thanks pruthvi
Manuel K
on 29 Nov 2022
How can I do this inside a (self-modifying) library-block? The command does nothing in this scope.
NJ2Cali
on 24 Apr 2024
set_param('MyLibrary', 'lock', 'off')
Answers (0)
Categories
Find more on Programmatic Model Editing in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!