Delete all unconnected Lines from simulink diagram ?

100 views (last 30 days)
Pruthvi G
Pruthvi G on 12 Mar 2019
Commented: NJ2Cali on 24 Apr 2024 at 23:13
Answer: delete_line(find_system(Execution_level, 'FindAll', 'on', 'Type', 'line', 'Connected', 'off'))
  3 Comments
Manuel K
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
NJ2Cali on 24 Apr 2024 at 23:13
set_param('MyLibrary', 'lock', 'off')

Sign in to comment.

Answers (0)

Categories

Find more on Variables 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!