You are on page 1of 2

Seno cardinal continuo xc(t)

grid
x = (-12):0.01:12;
y = ((1./(pi.*x)).*(sin((pi./2).*x)));
plot(x,y)

seno cardinal discreto: x[n]


grid
n = (-12):12;
y = ((2./(pi.*n)).*(sin((pi./4).*n)));
stem(n,y)
title ( " X[n]");

seno cardinal discreto diezmado: xd[n]


grid
n = (-12):12;
y = ((2./((pi.*n).*3)).*(sin(((3.*pi)./4).*n)));
stem(n,y);
title ( " Xd[n]");

grid
fs = pi/2;
t = -10: 1/fs: 10;
s1 = ((1./(pi.*x)).*(sin((pi./2).*x)));
l= length(s1);
nfft = 2^ nextpow2(l);
y = fft(s1,nfft)/l;
f= fs/2*linspace(0,1,nfft/2+1);
plot(f,2*abs(y(1:nfft/2+1)));

You might also like