File Exchange Pick of the Week

Our best user submissions

Line – Goto From Tool

Posted by Sean de Wolski,

Sean‘s pick this week is Line – Goto From Tool by MsCSert.

While reading Guy’s post about the new signal highlighting capabilities in R2017b, I was reminded of this nice utility.

If you would like to declutter your model, this tool can help. Here is a simple model with five lines going between two subsystems.

After following the installation instructions in the provided pdf to add the utility to the path before starting Simulink,
it’s as simple as selecting a line and right-clicking:

It will prompt for a signal name which you can provide and then create the goto-from tags.

If you’d like to use buses instead of using from/gotos, you could use another new feature in Simulink to take the five lines and convert them into a bus.

Simply highlight the lines and hit the ellipsis that pops up:

And select “Create Bus”

Comments

Give it a try and let us know what you think here or leave a comment for MsCSert.

Get the MATLAB code

Published with MATLAB® R2017b

Add A Comment

Your email address will not be published. Required fields are marked *

What is 4 + 7 ?

Preview: hide