Perfect executing of Matlab without freezing the GUI