ECE_456_Reports/PS2/sinc.m
2021-03-05 15:25:31 -07:00

5 lines
123 B
Matlab

function out = sinc(x)
% Deal with the removable singularity at 0 explicitly.
out = sin(pi*x)./(pi*x);
out(x == 0) = 1;
end