| Products & Services | Solutions | Academia | Support | User Community | Company |
| Download Product Updates | | | Get Pricing | | | Trial Software |
| Documentation → Signal Processing Toolbox |
| Contents | Index |
| Learn more about Signal Processing Toolbox |
y = diric(x,n)
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.
If n is not a positive integer, diric gives the following error message:
Requires n to be a positive integer.
cos, gauspuls, pulstran, rectpuls, sawtooth, sin, sinc, square, tripuls
![]() | digitrevorder | downsample | ![]() |

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.
| © 1984-2009- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |