Rank: 18 based on 1888 downloads (last 30 days) and 50 files submitted
photo

Yair Altman

E-mail
Company/University
Consultant

Personal Profile:

Website: http://UndocumentedMatlab.com
LinkedIn: http://www.linkedin.com/in/yairaltman
 
Author of "Undocumented Secrets of Matlab-Java Programming" book:
http://UndocumentedMatlab.com/matlab-java-book/
 
Contact me: altmany at gmail dot com


 

Watch this Author's files

 

Files Posted by Yair Altman View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
25 Nov 2014 Screenshot ScreenCapture - get a screen-capture of a figure frame or component ScreenCapture gets a screen-capture of any Matlab GUI handle, or specified screen area rectangle Author: Yair Altman gui, java 207 32
  • 4.95652
5.0 | 24 ratings
21 Nov 2014 Screenshot UIINSPECT - display methods, properties & callbacks of an object Inspect an object handle (Java/COM/HG); display its methods/properties/callbacks in a unified window Author: Yair Altman example, com, awesome, gui tools, java, object 133 25
  • 5.0
5.0 | 16 ratings
20 Oct 2014 Screenshot UICOMPONENT - expands uicontrol to all Java classes Enhanced replacement for uicontrol & javacomponent, accepting all Java (Swing/AWT) style components Author: Yair Altman javacomponent, uicontrol, graphics, data exploration, java 60 29
  • 5.0
5.0 | 20 ratings
20 Oct 2014 Screenshot setPrompt - Set the Command Window prompt Sets the Command Window prompt to the specified string Author: Yair Altman desktop, command window, undocumented, java 28 13
  • 5.0
5.0 | 10 ratings
20 Oct 2014 Screenshot statusbar set/get status bar(s) for GUI figures & Matlab desktop Author: Yair Altman example, waitbar, gui tools, java, statusbar desktop jav... 77 34
  • 4.95
5.0 | 22 ratings
Comments and Ratings by Yair Altman View all
Updated File Comments Rating
10 Dec 2014 ScreenCapture - get a screen-capture of a figure frame or component ScreenCapture gets a screen-capture of any Matlab GUI handle, or specified screen area rectangle Author: Yair Altman

@Fernando - when you take a screenshot, the resolution is exactly the displayed resolution of the figure window - exactly the same number of pixels as displayed onscreen. To resize a figure, update its Position property. If you need a vectorized (scalable) image, then you should save the figure as an EPS/WMF and not use this utility.

06 Dec 2014 FindJObj - find java handles of Matlab graphic objects Find java objects contained within a specified java container or Matlab GUI handle Author: Yair Altman

Matlab does not actually render the Java component until it is displayed at least once. So until that time, findjobj will return empty.

In R2014b the entire underlying graphics rendering engine has changed (so-called HG2) so it is not surprising that things that worked well in 14a need to be adapted to work in 14b. In fact, I find it a small miracle that findjobj still works well [most of the time] in 14b... In your case, you can simply activate the tabs programmatically, and call drawnow(), and this should solve your issue.

26 Nov 2014 UICOMPONENT - expands uicontrol to all Java classes Enhanced replacement for uicontrol & javacomponent, accepting all Java (Swing/AWT) style components Author: Yair Altman

Your specified parent handle is probably wrong in some way. Try using gcf instead of Layout.Cell(1,3) to verify this.

15 Nov 2014 ScreenCapture - get a screen-capture of a figure frame or component ScreenCapture gets a screen-capture of any Matlab GUI handle, or specified screen area rectangle Author: Yair Altman

@Yannick - I just uploaded a fixed version that should also work on R2014b (as well as on older Matlab releases).

12 Nov 2014 App Designer Prototype environment being developed by MathWorks for building MATLAB user interfaces. Author: MathWorks App Designer Team

Excellent addition to Matlab. Hopefully it will be enhanced and improved, and eventually merged into the standard Matlab.

Designers of Matlab GUI are highly encouraged to install this app.

Comments and Ratings on Yair Altman's Files View all
Updated File Comment by Comments Rating
12 Dec 2014 SoundVolume - set or get the system speaker sound volume SoundVolume sets or gets the computer system's speaker sound volume, using Java Author: Yair Altman Leo

Hi all.
I've tried it in windows 7 and no problems detected (code run till the end, no warnings) It says the volume has been changed, though it remains actually unchanged! Any tip? Thank you.

11 Dec 2014 ScreenCapture - get a screen-capture of a figure frame or component ScreenCapture gets a screen-capture of any Matlab GUI handle, or specified screen area rectangle Author: Yair Altman Fernando Esteves

Ok, thanks for the answer Yair.

10 Dec 2014 ScreenCapture - get a screen-capture of a figure frame or component ScreenCapture gets a screen-capture of any Matlab GUI handle, or specified screen area rectangle Author: Yair Altman Yair Altman

@Fernando - when you take a screenshot, the resolution is exactly the displayed resolution of the figure window - exactly the same number of pixels as displayed onscreen. To resize a figure, update its Position property. If you need a vectorized (scalable) image, then you should save the figure as an EPS/WMF and not use this utility.

10 Dec 2014 ScreenCapture - get a screen-capture of a figure frame or component ScreenCapture gets a screen-capture of any Matlab GUI handle, or specified screen area rectangle Author: Yair Altman Fernando Esteves

Magnificent code Yair, thanks.

I have two questions. Is there a way to set the position (horizontally or vertically) and size of the figure for printing? and How can I increase the resolution of the jpg or png image?

10 Dec 2014 ScreenCapture - get a screen-capture of a figure frame or component ScreenCapture gets a screen-capture of any Matlab GUI handle, or specified screen area rectangle Author: Yair Altman Fernando Esteves

Contact us