IMPORTANT NOTE: this utility DOES NOT WORK on R2013b/Java7 and higher, only on earlier releases. The failure is due to a change in the way that transparency works in Java 7 compared to earlier releases. If I ever find a solution, I will post it here. In the meantime, please do not comment about this issue here.
Great utility. I have had a bit of trouble getting the overlay figure to exactly match the original. I found if I have a menu created in GUIDE, then the 'Menu' parameter is 'none' and the blurFig shortens itself.
If you add some lines to check if hProps.MenuBar is 'none', but there are uimenu objects with children, then you can launch the figure without the Menu parameter and it's fine.
Also adding space in line 180:
helps keep the height matching in other situations.
I'm really loving your blog Yair, some really useful things in there! I'm running Matlab 20112b on OSX and the following line causes the blurfigure to flicker:
hLink(3) = linkprop(hFigures,'Visible');
I've commented it out as I'm not changing visibility of the target figure during the call, but I'm just not sure why that line caused problems!