%% Compute Hankel Function
% Specify the Hankel function for a symbolic variable.

syms z
H = besselh(3/2,1,z)

% Evaluate the function symbolically and numerically at the point z = 1 + 2i.

Hval = subs(H,z,1+2i)
vpa(Hval)

% Specify the function without the second argument, K = 1.

H2 = besselh(3/2,z)

% Notice that the functions H and H2 are identical.
% Scale the function by e^{-iz} by using the four-argument syntax.

Hnew = besselh(3/2,1,z,1)

% Find the derivative of H.

diffH = diff(H)

% Copyright 2018 The MathWorks, Inc.