12.07.2015 Views

PRELUCRAREA SEMNALELOR:

PRELUCRAREA SEMNALELOR:

PRELUCRAREA SEMNALELOR:

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

16 CAPITOLUL 1. SEMNALEfunction [X,w] = tf_jf(wt, M, np)% calculeaza transformata Fourier a semnalului ideal% de joasa frecventa trunchiat la intervalul -M:M% wt - frecventa maxima (banda de frecvente este [0,wb])% M - limita suportului semnalului% np - numarul de frecvente (echidistante) in care se calculeaza% transformata Fourierif nargin < 3np = 200;end%------------------------------------------% VARIANTA 1n = -M:M;x = sin(wt*n)./(pi*n);x((1+end)/2) = wt/pi;w = 0:2*pi/np:pi;for k = 1 : length(w)X(k) = sum( x .* exp(-j*w(k)*n) );endX = [ conj(X(end:-1:2)) X ];w = [ -w(end:-1:2) w ];%------------------------------------------% VARIANTA 2n = (1:M)’;x = sin(wt*n)./(pi*n);w = 0:2*pi/np:pi;X = x’ * cos(n*w);X = 2*X + wt/pi;X = [ X(end:-1:2) X ];w = [ -w(end:-1:2) w ];Figura 1.9: Program de calcul al modulului transformatei Fourier (1.27) trunchiatăla suportul −M : M.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!