How To Stop A Function In Matlab