5.0

5.0 | 7 ratings Rate this file 16 Downloads (last 30 days) File Size: 1.6 KB File ID: #12352

Delete unconnected lines

by

 

21 Sep 2006 (Updated )

Delete unconnected lines under a Simulink system

| Watch this File

File Information
Description

While "googling" the Matlab newsgroup I saw there were interest in being able to delete all unconnected lines inside a Simulink model. That is without actually doing it manually in the Simulink diagram.

Required Products Simulink
MATLAB release MATLAB 7.2 (R2006a)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (7)
16 Aug 2014 Nancy

works cleanly and as advertised. Put it as a project shortcut.

20 Feb 2012 Fei Pan

Nice Thanks

30 Apr 2010 Murat

Very useful code, but it doesn't work if the model parameters are not defined, though the parameters have nothing to do with the lines. but still this is not a problem at all, and the code works fine.

14 Aug 2008 Christin Maier

Hi, I am trying to make a script, which deletes all contents of a simulink block diagram except its subfunctions, Ports and the lines between Subfunctions. Do you have any idea? (I know that's not the right place for the question but i am really in trouble)

03 Jun 2008 Thierry Dalon

Very useful!
I've added this into my sl_customization.

28 Feb 2007 Roberto Cantamessa  
25 Sep 2006 Malcolm Wood

Nice. Seems to deal with all the obvious edge-cases.

Contact us