Code covered by the BSD License  


5.0 | 3 ratings Rate this file 38 Downloads (last 30 days) File Size: 200 KB File ID: #24017

Zoom Functionality in MATLAB and Simulink Using Mouse Wheel



06 May 2009 (Updated )

Enable zoom in/out in MATLAB Command window, Simulink models, and Simulink dialogs using mouse wheel

| Watch this File

File Information

When running, this application will enable the standard zoom functionality in MATLAB Command window, Simulink models, and Simulink Dialogs.

For using this functionality in MATLAB Command window, you need to enable MATLAB Automation Server.When you first run this application it will give a prompt for doing that for you.

When it is running, hold the CTRL (Control) key on your keyboard and scroll the mouse wheel to zoom in/out in MATLAB Command window, a Simulink model, or a Simulink dialog depending on which one is present and active.

If you are in MATLAB command, you can use CTRL+b to make the text bold (and back to plain).

MATLAB release MATLAB 7.8 (R2009a)
Other requirements Works on all versions of MATLAB
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (5)
10 Oct 2013 Rody Oldenhuis  
17 Apr 2012 Florian Knorn

Great tool and works as advertised.

May I make a suggestion though: The tool seems to reset the font used*). Can you please make it so this doesn't happen (i.e. just the font size is changed, not the font itself)?

Thank you!

*) I personally prefer to use the Droid Sans Mono font which is probably as beautiful a monospaced font is ever going to be.

07 Oct 2011 Chee Syn Ang

Great tool to be used during presentation or teaching.

15 May 2009 Hamid Satarboroujeni

Hi Thierry,

Thank you for your interest in the tool. I recently realized that for some unknown reason the tool does not work for some mouses (like Lenovo mouse). Change your mouse to see if the tool works. If not, then these are possible sources of problem I can think of:

1- The tool must be launched AFTER you have an existing MATLAB session. Even if you don’t have MATLAB open it prompts you to launch MATLAB for you. So, to be safe open MATLAB first and then launch the tool.

2- MATLAB Automation Server must be enabled for the tool to work. It can automatically enable Automation Server for you by running the following command at your existing MATLAB command window:
>> enableservice('AutomationServer',true);
If it does not do it for you (which I doubt), then run it manually.

3- The zoom functionality only works in the desktop tools that use Desktop code. By default, the command window, command history and the editor use this code. To make sure your command window is using Desktop code, go to MATLAB preferences (file -> Preferences -> Font -> Custom) and make sure in the list of Desktop Tool, Command Window is using Desktop Code

4- If it’s not working after you follow the steps above, then you probably don’t have the Microsoft Scripting Control installed on your machine. It’s almost always available on Windows machines by default, but to make sure you have it go to the following location
and look for msscript.ocx. If you don’t have it, you can easily download it directly from Microsoft and install it (

If none of these resolve the issue, then try these commands to see if you get any errors:

%Get the current font size:

%Is the font PLAIN?

%Change the font size to 12'Monospaced',java.awt.Font.PLAIN,12))

%Make it bold'Monospaced',java.awt.Font.BOLD,12))

15 May 2009 Thierry Dalon

The ML zoom in command window does not seem to work. (I use R14SP3). BTW it opens another command window.

26 May 2009

Fixed the issue of opening an extra instance of MATLAB when an exiting MATLAB session was detected.

26 May 2009

Fixed the issue of opening an extra instance of MATLAB when an exiting MATLAB session was detected.

Contact us