function y = sinc(x)

y = zeros(1,length(x));

for c = 1:length(x)
    if (x(c) == 0)
        y(c) = 1;
    else
        y(c) = sin(pi*x(c))/(pi*x(c));
    end
end
