I had the same problem with Matlab 2015. the same script ran with no problems in 2014(unlike your case), however when I use "drawnow" code under ''figure'' inside the script, the problem solved. may...