f=psinc(L,n);
psinc(L,n) computes the periodic Sinc function of length L with \(n-1\) local extrema. The dft of the periodic Sinc function is the periodic rectangle, prect, of length n.
This figure displays a the periodic sinc function with 6 local extremas:
plot(psinc(30,7));