Documente Academic
Documente Profesional
Documente Cultură
LABORATOARE
PRELUCRAREA SEMNALELOR
n=0:20;
x1=[ones(1,10), zeros(1,11)];
X=fft(x1);
figure
plot(X)
plot(abs(X))
X1=fft(x1,512);
plot(abs(X1)),grid
w=-pi:2*pi/512:pi-2*pi/512;
plot(w,fftshift (abs(X1))), grid
plot(w,fftshift(angle(X1))), grid
x2=sin(n*pi/5);
X2=fft(x2,512);
subplot(2,1,1), plot(w,fftshift(abs(X2))), grid
subplot(2,1,2), plot(w,fftshift(angle(X2))), grid
x3=cos(n*pi/5);
X3=fft(x3,512);
subplot(2,1,1), plot(w,fftshift(abs(X3))), grid
Exercitiu 3. n=0:5;
x1=n;
X=fft(x1);
plot(X)
plot(abs(X))
X1=fft(x1,512);
plot(abs(X1)), grid
w=-pi:2*pi/512:pi-2*pi/512;
plot(w,fftshift (abs(X1))), grid
plot(w,fftshift(angle(X1))), grid