How To End A While Loop In Matlab