Clear Filters
Clear Filters

Match Block Sizes in Simulink (2021b)

95 views (last 30 days)
Mert Aygün
Mert Aygün on 23 Oct 2021
Commented: Scott Tatum on 11 Jun 2024 at 17:05
Does anyone know how to add "Match Size" function in Simulink? I have been using this function a lot since 2013b but I was shocked by not seeing this feature in 2021b. The shortcut for this was Ctlr+A+S. Thanks in advance!
Rahul Subramanian
Rahul Subramanian on 14 Mar 2022
100% agree with this post! I'm very surprised at the loss of this feature. Slightly broader point - whoever from Mathworks is reading this, kindly read the following for feedback:
  1. I have been a Simulink power user for a decade+ and my greatest used keyboard shortcuts with ease are mouse right click+f+X etc style keyboard shortcuts for matching size, aligning center etc which I use every few minutes (maybe less than a minute?) to format my model and makes my modeling speed very fast. This is definitely the best part of the Simulink user interface. I 100% credit these keyboard shortcuts to making my models much more organized than the average model, as modes in Simulink can easily look clumsy.
  2. The issue is that, to coders, the part that matters is implementing logic, so dragging/re-sizing blocks around makes using Simulink feel silly. Second, it distracts me from thinking about the code I am implementing. Third, it makes my model messier of course. So if I have keyboard shortcuts, it's quick.
  3. C coders/firmware engineers are turned off by dragging blocks around and get turned off from Simulink, as manually moving/re-shaping blocks has nothing to do with the underlying code, and therefore makes Simulink feel a bit silly to use. So I show them how to use keyboard shortcuts such as align and re-size so that they can format their model and they like it.
  4. I'm sorry, but moving my mouse around to click on format->match is painful. In fact, in any software, why would I want to move my mouse around to look and click for settings when I can do it with my left hand?
  5. I'm very diasspointed this has been left out and it's making Simulink modeling annoying. Could this please be re-introduced? Thank you!
Kristian on 22 Nov 2022
Edited: Kristian on 29 Nov 2022
I completely agree. The feedback from Rahul could have been mine. This is ... sorry for saying that so clearly ... complete crap. Mathworks is doing the same mistake which Microsoft did a few years ago with regards to a very similar topic. They moved some very useful buttons to the ribbon where you actually don´t need it because you need it where you work. I think that one argument for this change was that Word and Excel are no design tools or something. No, it is not their main purpose but having such tools helps a lot either, and it does not hurt keeping them. And the second argument that you get used to it over time ... this is simply not true. I still struggle with it every day because it is neither logical nor natural.
Same here now with Simulink. The editors of Simulink and especially Stateflow have never been a showcase of ergonomics and intuitive handling. In the past years finally some things have changed and became better. This also applies to e.g. 2021b vs. 2020b. But why is that coming along with such unnecessary setbacks? It was not even displaced by other things but actually just removed. Why? Do the designers of the editors work with them themselves? Obviously this is not the case. Else they would not have excogitated such ideas. It is not jsut about shortcuts (which I have used for years as well because it makes it really fast and easy). I know that shortcuts are not everyone´s favorite. But it´s also the other point which Rahul mentioned: It´s too complicated to always change the bloody ribbons, to serach for the symbols, to move the mouse there, to move the mouse back and to lose track of the own programming thoughts. This is so annoying.
And the worst thing comes now: It even does not work in all cases: Can anyone tell me how to match a size of 2 objects? In the past it was clerly depending on the order of selection resp. on the final click. That was intuitive and easy. But now there does not seem to be a rule. Today I have tried to match the size of 2 objects for a few minutes until I gave up. It was not possible to give object A the same size as object B. It happened the other way round. Always. I have tried everything* I would say. Order, clicks, position, distancees, ... it did not help. And actually it cannot perfectly work because you cannot start the action with a clear and easy reference to the sample object. This can only be reached by a right-click. Even a last selection is not the same because you cannot easily change it.
So again: Yes, Simulink and Stateflow are very powerful tools which do a good job – if you are able to tell them what to do. They don´t need to win prices for the best sketching tool ever but it´s very clear that the user interface is a main and very important piece of the total tool. I have my washing machine in mind. It cleans my clothes better than every other machine. Now I get a new one. It´s a bit more silent, maybe not that heahy and it tells me when I take the wrong cleanser. Nice. But unfortunately I always need to use a screw driver to remove 8 screws which fix the cover of the control panel before I can select the washing program. And I need to attach all 8 screws again before I can finally start the machine. Simulink 2021b is such a new washing machine in parts. Unfortunately.
Please change it back. Within 2021b. Not with a new release only.
Edit 22-11-29:
*) Everything but one as it seems ... the last step has to be a right-click on the reference item. Then it works. So there is a way but it´s still not more than a workaround because you still have to go to the ribbon which is very annoying.

Sign in to comment.

Answers (5)

Erin McGarrity
Erin McGarrity on 9 Dec 2021
Craig on 8 Oct 2023
Thanks. Miss having this in the context menu!

Sign in to comment.

Erin McGarrity
Erin McGarrity on 9 Dec 2021
You can find it in the Format Tab after selecting multiple blocks.
Andrew Hidish
Andrew Hidish on 8 Feb 2022
I have found it in the menu how you stated, but it is taking me longer to do the same thing I've done before in previous versions of Simulink, since I need to go up to this menu and hover over the icon to tell what it does. I've become accustomed to being able to right-click and choosing it from the menu. This seems to take longer to do, hence it wastes my time. Is there a way to get the arrange and distribute menus back into the right-click dialog?
Pablo Nanez
Pablo Nanez on 26 May 2022
completelly agree, the right click dialog is way better, keyboard shortcut, even better

Sign in to comment.

Scott Tatum
Scott Tatum on 9 Dec 2022
So I asked this question for 22b (cause it still isn't there) with the specific part of how do I create a workaround that isn't going to the toolstrip ribbon to click the button, cause as everyone else who has posted here agrees that isn't the right answer. I then was annoyed enough that I created my own context menu and made a keyboard shortcut for it. Still not the right answer as my post explains, but it is a workaround for now for those that are interested:

cuneyt haspolat
cuneyt haspolat on 11 Jun 2024 at 5:10
Dear Mathworks,
The lack of such shortcuts in industrial sectors significantly reduces efficiency and forces us to use older versions. I have no idea why these useful shortcuts were removed, but there has been no update for three years. This update is not user-friendly and unfortunately, it decreases my love for MATLAB day by day. The only thing that comes to my mind due to the lack of updates for three years is that your colleagues working in the Simulink department do not know how to use Simulink or they dont use Simulink in productive way.
Best Regards,

Carlos Uribe
Carlos Uribe on 9 Dec 2021
It does not show up after selecting multiple blocks


Find more on Simulink in Help Center and File Exchange




Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!