You probably have a variable that you mistakenly named ‘min’. (This is called ‘overshadowing’ a MATLAB function with a variable.)
Type this in your Command Window:
If the first result is:
You have found the problem. The solution is to rename the variable ‘min’ to something else.