Close Function Matlab Example