I love the fact that Simulink provides a graphical view of the system being modeled, but being a stickler for clean looking models, I sometimes find myself spending time cleaning up lines, resizing blocks, and other graphical tweaks that aren't related to actually solving the problem I'm working on.
That's why I like my colleague Mike's simple tool that saves some time by automatically updating the number of ports and resizing blocks like mux and demux to quickly provide a clean connection to upstream or downstream blocks. After downloading and installing the code, you simply select the the blocks you want to connect to, right-click and choose AutoSizeOnConnect from the context menu, then click the mux or demux block. The result is a nice clean connection:
By
Guest Picker
We're a group of application engineers at MathWorks interested in a number of topics too many to list here. We hope to bring you exciting picks that span our various backgrounds.
Recent Comments