%% Transform Sinc Function
% Compute the Hilbert transform of the sinc function, which is equal to sin(πx)/πx. Express the result as a function of u.

syms f(x) H(u);
f(x) = sinc(x);
H(u) = htrans(f,u)

% Plot the sinc function and its Hilbert transform.

fplot(f(x),[0 6])
hold on
fplot(H(u),[0 6])
legend('sinc(x)','H(u)')

%
% Copyright 2018 The MathWorks, Inc.