Matlab Split Path With Only One Ending