Type which chebfun2.
If it says the function is not found, it means you may not have the package you need installed. You could google it or ask the person you got the code from where to get it. If it is installed but still not found, you may need to add it to your path.