MATLAB hang closing plot - Search