Code covered by the BSD License  

Highlights from
Delete unconnected lines

5.0

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

Delete unconnected lines

by Per-Anders Ekstrom

 

21 Sep 2006 (Updated 21 Sep 2006)

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  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (5)
25 Sep 2006 Malcolm Wood

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

28 Feb 2007 Roberto Cantamessa  
03 Jun 2008 Thierry Dalon

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

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)

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.

Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
simulink Per-Anders Ekstrom 22 Oct 2008 08:40:27
simulink unconnected loose lines delete Per-Anders Ekstrom 22 Oct 2008 08:40:27
simulink unconnected loose lines delete Ingo 10 Nov 2010 10:09:34
simulink Dimi 05 Jan 2012 08:02:35

Contact us at files@mathworks.com