Checking Function In Matlab Script