Checking Function In Matlab Example