OK, I see, but..., when I ran couple comparison examples from Matlab site, I got results showing the equality is not fully perfect.
QUOTE: The Dirichlet and sinc functions are related by DN(πx)=sinc(Nx/2)/sinc(x/2). Relationship for N=6 while avoiding indeterminate expressions by specifying that the ratio of sinc functions is (−1)k(N−1) for x=2k, where k is an integer.
Code: Select all
% needed for Octave ----------
pkg load signal
% -----------------------------------
xmax = 4;
x = linspace(-xmax,xmax,1001)';
N = 6;
yd = diric(x*pi,N);
ys = sinc(N*x/2)./sinc(x/2);
ys(~mod(x,2)) = (-1).^(x(~mod(x,2))/2*(N-1));
figure(1);
plot(x,yd,ys)
legend('D_6(x*pi)', 'sinc(6*x/2) / sinc(x/2)', 'location', 'southwest');
title('The Dirichlet and sinc functions are related by DN(πx)=sinc(Nx/2)/sinc(x/2)... ')
N = 13;
yd = diric(x*pi,N);
ys = sinc(N*x/2)./sinc(x/2);
ys(~mod(x,2)) = (-1).^(x(~mod(x,2))/2*(N-1));
figure(2);
plot(x,yd, ys)
title('when N=13.')
legend('D_{13}(x*pi)', 'sinc(13*x/2) / sinc(x/2)', 'location', 'southwest')