Be the first to rate this file! 18 Downloads (last 30 days) File Size: 1.25 KB File ID: #34237

Redraw lines in simulink v1

by

 

This simple function redraws the lines in (the top level) simulink.

| Watch this File

File Information
Description

For each block in the simulink diagram, it finds the inports. For each inport the function searches for the corresponding source port.

it deletes the line, then redraws it using either autorouting on or off.

Acknowledgements

This file inspired Simulink Manipulation Utilities.

Required Products Simulink
MATLAB
MATLAB release MATLAB 7.13 (R2011b)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (2)
14 Mar 2012 Thijs

Mostly yes, I personally used it when automatically generating simulink models. depending on the complexity of the model I found it usefull to switch between autorouting on or off. In a simpel model 'off' resulted in the best look, but in slightly more complex ones that resulted in a spider web like tangle of lines, in this case the orthogonal look using autorouting was better looking.

I also use it when I forget my mouse, and have to rely on a mousepad, as it can be difficult to connect the lines neatly if one source block is connected to multiple destinations (i.e. when you cant use ctrl+click to quickly connect blocks).

14 Mar 2012 K E

What is the reason that one would redraw the lines? To clean up the block diagram?

Contact us