MATLAB: Using MATLAB determine the unit vector normal to ?=??+??−? at point P(1,3,0).

electromagneticelectromagnetic fields

using MATLAB determine the unit vector normal to ?=??+??−? at point P(1,3,0).

Best Answer

syms x y z
s = x^2+y^2-z;
n(x,y,z) = gradient(s, [x, y, z]);
a = eval(n(1,3,0)/norm(n(1,3,0)));
Related Question