Rank: 3882 based on 32 downloads (last 30 days) and 1 file submitted
photo

Anh Huy Phan

E-mail

Personal Profile:
Professional Interests:

 

Watch this Author's files

 

Files Posted by Anh Huy
Updated   File Tags Downloads
(last 30 days)
Comments Rating
23 Jul 2012 Screenshot Manage and Dock Figures into Group SETFIGDOCKED docks figures at specified positions in group of figures Author: Anh Huy Phan gui tools, example, setfigdocked setgroup..., gui 32 7
  • 5.0
5.0 | 3 ratings
Comments and Ratings on Anh Huy's Files View all
Updated File Comment by Comments Rating
11 Apr 2014 Manage and Dock Figures into Group SETFIGDOCKED docks figures at specified positions in group of figures Author: Anh Huy Phan Dalon, Thierry

If the figure was already docked in the Group it is not enough to select the destination tile to dock the figure to a selected position. Somehow the previous position is remembered.
As workaround reset the dock group of the figure to a hidden 'Temp' group to clear the memory of the position - before docking the figure.

25 Jun 2013 Manage and Dock Figures into Group SETFIGDOCKED docks figures at specified positions in group of figures Author: Anh Huy Phan Pete

One important thing to note: This script relies on a bit of a hack where some key strokes are simulated to set focus on the dock.

If, earlier in your script, you have used something like Psychtoolbox's 'ListenChar' to intercept keystrokes, then setfigdocked will not function properly. Just a friendly warning! (5 hours of debugging, and several white hairs, later..)

Still a good function though!

19 Nov 2012 Manage and Dock Figures into Group SETFIGDOCKED docks figures at specified positions in group of figures Author: Anh Huy Phan Pete

I was looking to make a GUI for a toolbox, involving multiple figure windows. This struck me as an elegant alternative to trying to manually keep multiple figures arranged.

Seems to work very nicely. (R2012b; Win7-64bit)

22 Jun 2012 Manage and Dock Figures into Group SETFIGDOCKED docks figures at specified positions in group of figures Author: Anh Huy Phan Keith

This works fine when I run it from the command window, but when I try to run it from inside a GUI, I'm getting an error. Here's the trace:

Attempt to reference field of non-structure array.

Error in setfigdocked (line 169)
jpanel.requestFocus(true); % Focus on Dock

Error in particletracking>splittifbutton_Callback (line 790)
group = setfigdocked('GroupName','Images2','GridSize',[2 3], 'GroupDocked', 0);

Error in gui_mainfcn (line 96)
feval(varargin{:});

Error in particletracking (line 42)
gui_mainfcn(gui_State, varargin{:});

Error in @(hObject,eventdata)particletracking('splittifbutton_Callback',hObject,eventdata,guidata(hObject))


Error while evaluating uicontrol Callback

14 Feb 2012 Manage and Dock Figures into Group SETFIGDOCKED docks figures at specified positions in group of figures Author: Anh Huy Phan Altman, Yair

take at look at the related utility setFigDockGroup - http://www.mathworks.com/matlabcentral/fileexchange/16650-setfigdockgroup

Contact us