Are you trying to use Symbolic Toolbox hessian() ? If so then it requires a symbolic function or symbolic expression first argument, an requires a vector of symbolic names as a second argument.
If you are trying to use This File Exchange Contribution then a scalar function first argument is fine, but the second argument needs to be the location to evaluate the Hessian at.
