MATLAB: Taking the partial derivative analytically and then evaluating at a specific (x,y,z) coordinate

numerical valuepartial derivativessymbolic

I need to take the partial derivatives of the following function
F = [3x.^2 4y.^2-x.^2 4xz]
The partial derivatives from this equation (i.e. Fxx, Fxy, Fxz etc.) will go on to be part of a tensor.
I have done the following so far:
syms x y z
dFx_x = diff(F(1,1),x)
dFx_y = diff(F(2,1),y) etc.
However, once I get the analytical derivative…I want to be able to specify x,y,z and then get the dFx_x, dFy_y numerical values…
How do I go about actually evaluating the numerical value at a specific x,y,z.

Best Answer

Read about subs, double, vpa.