MATLAB: Gradient command producing multiple functions

gradientmultiple functionsquiver

Hello, when I use the gradient command I am given multiple functions as the answer. I assume these are the gradient at each 'root'. Is it necessary to substitute X at a specific position to generate the gradient at the position? Furthermore, will quiver generate the slope field?
G.

Best Answer

The functions you obtain from the gradient function are the derivatives with respect to the vector of the used variables. See https://www.mathworks.com/help/symbolic/gradient.html .