Hi,
When you dock some figures, they go in the Figure Editor, which is not a classic matlab figure. This is a java component.
You can access it but it becomes messy (and dangerous) really fast.
you need to use code looking like :
fig = figure;
set(fig,'WindowStyle','docked')
get(fig,'Position')
desktop = com.mathworks.mde.desk.MLDesktop.getInstance;
container = desktop.getGroupContainer('Figures').getTopLevelAncestor;
width = get(container.getSize,'width');
height = get(container.getSize,'height');
Location = get(container.getAccessibleContext,'Location');
Xorigin = get(Location,'X');
Yorigin = get(Location,'Y');
disp([Xorigin Yorigin width height])
Best Answer