ÐźÅÓëϵͳʵÑ鱨¸æ
ʵÑé ÐźųéÑù¼°ÐźÅÖØ½¨ Ò»¡¢ÊµÑéÄ¿µÄ 1¡¢½øÒ»²½Àí½âÐźŵijéÑù¼°³éÑù¶¨Àí; 2¡¢½øÒ»²½ÕÆÎÕ³éÑùÐÅºÅµÄÆµÆ×·ÖÎö; 3¡¢ÕÆÎÕºÍÀí½âÐźųéÑùÒÔ¼°ÐźÅÖØ½¨µÄÔÀí; ¶þ¡¢ÊµÑéÄÚÈݼ°²½Öè
Á·Ï°1¡¢Ê²Ã´ÊdzéÑù¶¨Àí,ÐźŲÉÑùºóÖØ½¨µÄ²½Ö裬³éÑùƵÂÊÈçºÎÉèÖÃ, ´ð:(1). ³éÑù,Sampling,:¾ÍÊÇ´ÓÁ¬ÐøÊ±¼äÐźÅÖгéȡһϵÁеÄÐźÅÑù±¾£¬´Ó¶ø£¬µÃµ½Ò»¸öÀëɢʱ¼äÐòÁÐ(Discrete-time sequence).
³éÑù¶¨Àí:Éèʱ¼äÁ¬ÐøÐźÅf(t)£¬Æä×î¸ß½ØÖ¹ÆµÂÊΪf m £¬Èç¹ûÓÃʱ¼ä¼ä¸ôΪT<=1/2f
mµÄ¿ª¹ØÐźŶÔf(t)½øÐгéÑùʱ£¬Ôòf(t)¾Í¿É±»ÑùÖµÐźÅΨһµØ±íʾ¡£ (2).
²½Öè:´ÓƵÓò¿´,ÉèÐźÅ×î¸ßƵÂʲ»³¬¹ýÕÛµþƵÂÊ: ,,,,Xa(j)=Xa(j) ||s/2
ÔòÀíÏëÈ¡ÑùºóµÄƵÆ×¾Í²»»á²úÉú»ìµþ,¹ÊÓÐ:
ÈÃÈ¡ÑùÐźÅx^(t)ͨ¹ýÒ»´ø¿íµÈÓÚÕÛµþƵÂʵÄÀíÏëµÍͨÂ˲¨Æ÷: ,,,H(j)=T ||s/2
Â˲¨Æ÷Ö»ÔÊÐíͨ¹ý»ù´øÆµÆ×,¼´ÔÐÅºÅÆµÆ×,¹Ê: ,,,,Y(j)=X^(j)H(j)=Xa(j)
Òò´ËÔÚÂ˲¨Æ÷µÄÊä³öµÃµ½Á˻ָ´µÄÔÄ£ÄâÐźÅ: y(t)=xa(t)
´ÓʱÓòÉÏ¿´,ÉÏÊöÀíÏëµÄµÍͨÂ˲¨Æ÷µÄÂö³åÏìӦΪ:
¸ù¾Ý¾í»ý¹«Ê½¿ÉÇóµÃÀíÏëµÍͨÂ˲¨Æ÷µÄÊä³öΪ:
ÓÉÉÏʽÏÔÈ»¿ÉµÃ:
Ôò:
ÉÏʽ±íÃ÷Ö»ÒªÂú×ãÈ¡ÑùƵÂʸßÓÚÁ½±¶ÐźÅ×î¸ßƵÂÊ,Á¬ÐøÊ±¼äº¯Êýxa(t)¾Í¿ÉÓÃËûµÄÈ¡
ÑùÖµxa(nT)À´±í´ï¶ø²»ËðʧÈκÎÐÅÏ¢£¬ÕâʱֻҪ°Ñÿһ¸öÈ¡Ñù˲ʱֵÓëÄڲ庯ÊýʽÏà³ËÇó
ºÍ¼´¿ÉµÃ³öxa(t),ÔÚÿһȡÑùµãÉÏ,ÓÉÓÚÖ»ÓиÃÈ¡ÑùÖµËù¶ÔÓ¦µÄÄڲ庯Êýʽ²»ÎªÁã,ËùÒÔ¸÷
¸öÈ¡ÑùµãÉϵÄÐźÅÖµ²»±ä¡£ (3).
ƵÂÊÉèÖÃ:¸ù¾Ý³éÑù¶¨Àí ws/wmµÄÖµ±ØÐë´óÓÚ»òµÈÓÚ2 Á·Ï°2¡¢ ¸ø·¶Àý³ÌÐòProgram4_1¼Ó×¢ÊÍ¡£ % Program
clear, close all, tmax = 4; dt = 0.01;
t = 0:dt:tmax;
Ts = 1/10; % Sampling period ws = 2*pi/Ts; % Sampling frequency
w0 = 20*pi; dw = 0.1; % The frequency of x(t) w = -w0:dw:w0;
n = 0:1:tmax/Ts; % Make the time variable to be discrete x = exp(-4*t).*u(t);
xn = exp(-4*n*Ts); % The sampled version of x(t) subplot(221) % Plot the original signal x(t) plot(t,x), title('A continuous-time signal x(t)'), xlabel('Time t'), axis([0,tmax,0,1]), grid on subplot(223) % Plot xn
stem(n,xn,'.'), title('The sampled version x[n] of x(t)'), xlabel('Time index n'), axis([0,tmax/Ts,0,1]), grid on Xa = x*exp(-j*t'*w)*dt; X = 0;
for k = -8:8; % Periodically extend X to form a periodic signal X = X + x*exp(-j*t'*(w-k*ws))*dt; end
subplot(222) % Plot xa plot(w,abs(Xa))
title('Magnitude spectrum of x(t)'), grid on axis([-60,60,0,1.8*max(abs(Xa))]) subplot(224)
plot(w,abs(X))
title('Magnitude spectrum of x[n]'), xlabel('Frequency in radians/s'),grid on axis([-60,60,0,1.8*max(abs(Xa))])
Á·Ï°3¡¢·Ö±ð½øÐÐÉèÖÃws/wm= 2£¬ws/wm= 1£¬ws/wm= 3£¬²¢ÔËÐгéÑùÐźÅÖØ½¨³ÌÐò£¬
²¢¸ù¾Ý³éÑù¶¨Àí¼°ÖØ½¨Ìõ¼þ·ÖÎöÈýÖÖÉèÖÃÇé¿öϵĽá¹û¡£ % The original signal is the raised cosin signal: x(t) = [1+cos(pi*t)].*[u(t+1)-u(t-1)]. clear; close all,
wm = 2*pi; % The highest frequency of x(t) a = input('Type in the frequency rate ws/wm=:'); % ws is the sampling frequency wc = wm; % The cutoff frequency of the ideal lowpass filter t0 = 2; t = -t0:0.01:t0;
x = (1+cos(pi*t)).*(u(t+1)-u(t-1));
subplot(221); % Plot the original signal x(t) plot(t,x); grid on, axis([-2,2,-0.5,2.5]);
title('Original signal x(t)');xlabel('Time t');
ws = a*wm; % Sampling frequency Ts = 2*pi/ws; % Sampling period N = fix(t0/Ts); % Determine the number of samplers n = -N:N; nTs = n*Ts; % The discrete time variable xs =
(1+cos(pi*nTs)).*(u(nTs+1)-u(nTs-1)); % The sampled version of x(t) subplot(2,2,2) % Plot xs
stem(n,xs,'.'); xlabel('Time index n'); grid on, title('Sampled version x[n]'); xr = zeros(1,length(t)); % Specify a memory to save the reconstructed signal L = length(-N:N);
xa = xr;