Rank: 46092 based on 0 downloads (last 30 days) and 0 files submitted
photo

Andrew Bytheway

E-mail

Personal Profile:
Professional Interests:

 

Watch this Author's files

 

Comments and Ratings by Andrew View all
Updated File Comments Rating
25 Jan 2012 getkey Get a single keypress (v1.3, jan 2012) Author: Jos (10584)

Great work.

I made a few tweaks which you may be interested in implementing.

I added the following properties to the figure:
'NumberTitle','off'
'position',[0 -40 1 1]
'Name','Press a key'

On Windows this places the figure off of the screen, instead of behind the taskbar. This will help ensure that the figure is not visible since some users may place their taskbar elsewhere on the screen.

It is also possible for the user to maximize the figure and then close it, which would cause an error when attempting to delete the figure handle. To procect against this use the following code:

if ishandle(fh)
    delete(fh) ;
end

17 Mar 2011 FindJObj - find java handles of Matlab graphic objects Find java objects contained within a specified java container or Matlab GUI handle Author: Yair Altman

This is an awesome tool. Thanks for your sharing your work Yair.

14 Oct 2009 ps2pdf Convert PostScript file to PDF using Ghostscript; can generate multi-page PDF files. Author: Richard Quist

Great idea! I did experience problems when using this script in a deployed application (R2009a). The built-in version of Ghostscript doesn't work in deployed applications. It returns the following error:
??? Undefined function or method 'gscript' for input arguments of type 'char'.
Clearly it is failing to recognize the call to gscript altough the function handle was created correctly, and the needed mexw32 file is distributed with the MCR v7.10

Any ideas ???

Contact us at files@mathworks.com