This has happened with various scripts - the script is running and is plotting in various figure windows. If I resize one of the figure windows during this process, matlab hangs and I have to kill it. Not sure whether matlab was trying to draw to the window that I resized or to some other window. Haven't tried to do any tests to nail it down. Any workarounds ?