Signal Processing Toolbox    
diric

Compute the Dirichlet or periodic sinc function.

Syntax

Description

y = diric(x,n) returns a vector or array y the same size as x. The elements of y are the Dirichlet function of the elements of x. n must be a positive integer.

The Dirichlet function, or periodic sinc function, is

for any nonzero integer n. This function has period 2 for n odd and period 4 for n even. Its peak value is 1, and its minimum value is -1 for n even. The magnitude of this function is (1/n) times the magnitude of the discrete-time Fourier transform of the n-point rectangular window.

Diagnostics

If n is not a positive integer, diric gives the following error message.

See Also
cos
Compute the cosine of vector/matrix elements (see the MATLAB documentation).
gauspuls
Generate a Gaussian-modulated signal pulse.
pulstran
Generate a pulse train.
rectpuls
Generate a sampled aperiodic rectangle.
sawtooth
Generate a sawtooth or triangle wave.
sin
Compute the sine of vector/matrix elements (see the MATLAB documentation).
sinc
Compute the sinc or sin(t)/t function.
square
Generate a square wave.
tripuls
Generate a sampled aperiodic triangle.


 dftmtx dpss