Zoom and center Simulink model program (alt+1 & spacebar)
Show older comments
Trying to program the same functionality as you see in the "alt+1" and "spacebar" shortcuts into a callback function that will run when you open a model. The best I have found is the Simulink.scrollToVisible function but that doesn't seem to always zoom to 100% and center the models.
3 Comments
Gautam
on 23 May 2016
Hi Richard,
There's a 'Fit to View' option in the Explorer Bar(the bar that appears on the left hand side of the Simulink model). It essentially performs the same function as 'alt+1' and 'Spacebar' shortcuts.
Richard Hopple
on 6 Jun 2016
Matthias Schwaiger
on 26 Mar 2026 at 15:13
Is there any option to prevent simulink to change magnification and position of models when opening? Even if models are svaed with 100% zoom mode, they are shrinked and repositioned when opening again.
Accepted Answer
More Answers (0)
Categories
Find more on Interactive Model Editing in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!