View License

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video

Highlights from

5.0 | 1 rating Rate this file 5 Downloads (last 30 days) File Size: 13.3 KB File ID: #31575 Version:
image thumbnail



Mike Anthony (view profile)


25 May 2011 (Updated )

Automatically resize MIMO blocks upon connection.

| Watch this File

File Information

In Simulink, it is often the case where a user wants to connect multiple blocks to another block, particularly in case of mux, demux, and bus creator blocks. The typical practice is to select multiple blocks, hold control, and select the mux block (for example). This done, the blocks are all automatically connect. The next step is then typically a manual resize of the mux block by the user to make all of the lines just created straight.
This functional will automatically resize the block when the lines are initially drawn to eliminate the manual step of doing so.

Open the included model AutoSizeTest.mdl and follow the instructions to see an example of the functionality.


This file inspired Auto Size On Connect.

Required Products Simulink
MATLAB release MATLAB 7.11 (R2010b)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (1)
18 Oct 2012 Brian Holm-Hansen

Excellent set of tools (InputAutoSize and OutputAutoSize). These capabilities should be rolled into the default Simulink configuration.

27 May 2011 1.1

Updated screenshot and minor typos in files.

22 Jun 2011 1.2

Minor fix to prevent this functionality for blocks with a property 'IconShape' set to 'round'. The sum, add, and subtract block are all the same block but this function only makes sense if using the rectangular icon shape.

27 Jun 2013 1.3

Applied same bug fixes as AutoSizeOnConnect.

01 Sep 2016

Updated license

Contact us