Delete all unconnected Lines from simulink diagram ?

Answer: delete_line(find_system(Execution_level, 'FindAll', 'on', 'Type', 'line', 'Connected', 'off'))

3 Comments

How can I do this inside a (self-modifying) library-block? The command does nothing in this scope.
set_param('MyLibrary', 'lock', 'off')

Sign in to comment.

Answers (0)

Categories

Asked:

on 12 Mar 2019

Commented:

on 24 Apr 2024

Community Treasure Hunt

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

Start Hunting!