Rank: 2656 based on 49 downloads (last 30 days) and 3 files submitted
photo

Hamid Satarboroujeni

E-mail
Company/University
MathWorks

Personal Profile:

Senior Course Developer in the Training Services Group

Professional Interests:

 

Watch this Author's files

 

Files Posted by Hamid View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
26 May 2009 Zoom Functionality in MATLAB and Simulink Using Mouse Wheel Enable zoom in/out in MATLAB Command window, Simulink models, and Simulink dialogs using mouse wheel Author: Hamid Satarboroujeni mouse wheel, matlab command window, simulink, zoom, simulink dialog 24 4
  • 5.0
5.0 | 3 ratings
15 May 2009 Evaluate Selected Code from any Application in MATLAB When running this tool will enable you to evaluate selected code from any application in MATLAB. Author: Hamid Satarboroujeni evaluate code, outside matlab, automation server 13 1
21 Apr 2009 Zoom Functionality in Simulink Using Mouse Wheel Enable zoom functionality in Simulink using mouse wheel Author: Hamid Satarboroujeni zoom, simulink, mouse wheel 12 5
  • 4.66667
4.7 | 3 ratings
Comments and Ratings by Hamid View all
Updated File Comments Rating
15 May 2009 Zoom Functionality in MATLAB and Simulink Using Mouse Wheel Enable zoom in/out in MATLAB Command window, Simulink models, and Simulink dialogs using mouse wheel Author: 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
C:\WINNT\system32
and look for msscript.ocx. If you don’t have it, you can easily download it directly from Microsoft and install it (http://www.microsoft.com/downloads/details.aspx?FamilyId=D7E31492-2595-49E6-8C02-1426FEC693AC).

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

%Get the current font size:
com.mathworks.services.FontPrefs.convertJavaToPointFont(com.mathworks.services.FontPrefs.getCodeFont()).getSize

%Is the font PLAIN?
com.mathworks.services.FontPrefs.convertJavaToPointFont(com.mathworks.services.FontPrefs.getCodeFont()).isPlain

%Change the font size to 12
com.mathworks.services.FontPrefs.setCodeFont(java.awt.Font('Monospaced',java.awt.Font.PLAIN,12))

%Make it bold
com.mathworks.services.FontPrefs.setCodeFont(java.awt.Font('Monospaced',java.awt.Font.BOLD,12))

06 May 2009 Zoom Functionality in Simulink Using Mouse Wheel Enable zoom functionality in Simulink using mouse wheel Author: Hamid Satarboroujeni

Thanks Thierry Dalon for your comments.
This is now part of a more comprehensive tool that works in MATLAB Command window and Simulink dialogs as well: http://www.mathworks.com/matlabcentral/fileexchange/24017

Comments and Ratings on Hamid's Files View all
Updated File Comment by Comments Rating
10 Oct 2013 Zoom Functionality in MATLAB and Simulink Using Mouse Wheel Enable zoom in/out in MATLAB Command window, Simulink models, and Simulink dialogs using mouse wheel Author: Hamid Satarboroujeni Oldenhuis, Rody

11 Jun 2013 Zoom Functionality in Simulink Using Mouse Wheel Enable zoom functionality in Simulink using mouse wheel Author: Hamid Satarboroujeni Park, Jisang

07 Jun 2013 Evaluate Selected Code from any Application in MATLAB When running this tool will enable you to evaluate selected code from any application in MATLAB. Author: Hamid Satarboroujeni Rangaramu, Anand

Could you please provide the source for this application

17 Apr 2012 Zoom Functionality in MATLAB and Simulink Using Mouse Wheel Enable zoom in/out in MATLAB Command window, Simulink models, and Simulink dialogs using mouse wheel Author: Hamid Satarboroujeni Knorn, Florian

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 Zoom Functionality in MATLAB and Simulink Using Mouse Wheel Enable zoom in/out in MATLAB Command window, Simulink models, and Simulink dialogs using mouse wheel Author: Hamid Satarboroujeni Ang, Chee Syn

Great tool to be used during presentation or teaching.

Contact us