You "believe" that you are running gradient correctly, but did you check this? If you use the debugger either by setting a breakpoint or by dbtop if error you can find out very fast, that V is scalar, to be exact with the value 720. And you cannot calculate a gradient with 3 dimensions from a scalar.
Do you want the partial derivatives of "5*x.^3*y.^2*z"? This can be computed manually.
