This is where navigation should be.

PSINC - Periodic Sinc function (Dirichlet function)

Usage

f=psinc(L,n);

Description

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.

Examples:

This figure displays a the periodic sinc function with 6 local extremas:

plot(psinc(30,7));