sinc

Compute the sinc function.

Syntax

y = sinc(x)

Inputs

x
Values at which to evaluate the function.
Dimension: scalar | vector | matrix

Outputs

y
The output values.

Examples

Example with a scalar:

y = sinc(0.5)
y = 0.636619772
Example with a vector:
y = sinc([-1:0.2:1])
y = [Matrix] 1 x 11
3.89817e-17  2.33872e-01  5.04551e-01  7.56827e-01  9.35489e-01  1.00000e+00
9.35489e-01  7.56827e-01  5.04551e-01  2.33872e-01  3.89817e-17

Comments

The sinc function has the normalized form sin(pi x)/(pi x) and is related to the Fourier transform of a rectangular pulse.