You are here : matlabSignal Processingsinc

sinc() - Signal Processing

y =
sinc(x) returns an array, y, whose elements are the sinc of the elements of the input, x. y is
the same size as x.


Syntax

y =
sinc(x) example


Example

Ideal Bandlimited InterpolationOpen This Example
Perform ideal bandlimited interpolation of a random signal sampled at integer spacings.
Assume that the signal to interpolate, x, is 0 outside of the given time interval and has been sampled at the Nyquist frequency. Reset the random number generator for reproducibility.rng default

t = 1:10;
x = randn(size(t))';
ts = linspace(-5,15,600);
[Ts,T] = ndgrid(ts,t);
y = sinc(Ts - T)*x;

plot(t,x,'o',ts,y)
xlabel Time, ylabel Signal
legend('Sampled','Interpolated','Location','SouthWest')
legend boxoff


Output / Return Value


Limitations


Alternatives / See Also


Reference