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.
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
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
I've added this into my sl_customization.
28 Feb 2007
25 Sep 2006
Nice. Seems to deal with all the obvious edge-cases.