| 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 = sinc(x)
sinc computes the sinc function of an input vector or array, where the sinc function is

This function is the continuous inverse Fourier transform of the rectangular pulse of width 2π and height 1.
![]()
y = sinc(x) returns an array y the same size as x, whose elements are the sinc function of the elements of x.
The space of functions bandlimited in the frequency range
is spanned by the infinite (yet
countable) set of sinc functions shifted by integers. Thus any such
bandlimited function g(t)
can be reconstructed from its samples at integer spacings.
![]()
Perform ideal bandlimited interpolation by assuming that the signal to be interpolated is 0 outside of the given time interval and that it has been sampled at exactly the Nyquist frequency:
t = (1:10)'; % Column vector of time samples
randn('state',0);
x = randn(size(t)); % Column vector of data
ts = linspace(-5,15,600)'; % Times at which to interpolate
y = sinc(ts(:,ones(size(t))) - t(:,ones(size(ts)))')*x;
plot(t,x,'o',ts,y)

chirp, cos, diric, gauspuls, pulstran, rectpuls, sawtooth, sin, square, tripuls
![]() | winwrite (sigwin.tukeywin) | sos2cell | ![]() |

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 |