diric

Generate the Dirichlet function.

Syntax

d = diric(x, n)

Inputs

x
The values at which to evaluate the function.
Dimension: vector
n
The Dirichlet kernel index.
Dimension: integer

Outputs

d
The diric values.

Example

Generate five periods of the diric function with index 9.

x = [0:0.01:5]*(2*pi);
d = diric(x, 9);
plot (x, d);
xlabel('time');
ylabel('amplitude');
Figure 1. diric figure 1


Comments

The Dirichlet function is also knows as the periodic sinc function.