- 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.
- 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.
- 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.
- 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?
- I'm very diasspointed this has been left out and it's making Simulink modeling annoying. Could this please be re-introduced? Thank you!
Match Block Sizes in Simulink (2021b)
72 views (last 30 days)
Show older comments
Mert Aygün on 23 Oct 2021
Commented: Mike Crawford on 19 Jan 2023
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!
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.
*) 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.
Mike Crawford on 19 Jan 2023
How do I move this back to the Right Click > Format menu? Moving this to a Format tab seems pretty unnecessary.
You can find it in the Format Tab after selecting multiple blocks.
Pablo Nanez on 26 May 2022
completelly agree, the right click dialog is way better, keyboard shortcut, even better
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:
Carlos Uribe on 9 Dec 2021
It does not show up after selecting multiple blocks
Find more on Interactive Model Editing 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!