三、實驗内容、源程式及執行結果
- 信号任選,分析以下幾種情況下信号的頻譜和波形變化
- 系統滿足線性不失真條件時;
- 系統隻滿足恒定幅值條件時;
- 系統隻滿足相位條件時;
- 系統兩個條件均不滿足時;
-
t0=-3*pi;ts=3*pi;dt=0.01;
t=t0:dt:ts;
T=2*pi;
Et=0.5.*rectpuls(t,2*T);
plot(t,Et)
四種情況:
t0=-3*pi-1000;ts=3*pi-1000;dt=0.01;
t=t0:dt:ts;
T=2*pi;
E1t=0.5*(0.5.*rectpuls((t+1000),2*T)+0.5.*rectpuls((t-1000),2*T));
subplot(1,2,1);
plot(t,E1t)
t0=-3*pi+1000;ts=3*pi+1000;dt=0.01;
t=t0:dt:ts;
T=2*pi;
E1t=0.5*(0.5.*rectpuls((t+1000),2*T)+0.5.*rectpuls((t-1000),2*T));
subplot(1,2,2);
plot(t,E1t)
t0=-3*pi-1000;ts=3*pi-1000;dt=0.01;
t=t0:dt:ts;
T=2*pi;T1=2;
Rt=0.5*(0.5.*rectpuls((t+1000),2*T)+0.5.*rectpuls((t-1000),2*T)).*(rectpuls(t-1000,2*T1)+rectpuls(t+1000,2*T1));
subplot(1,2,1);
plot(t,Rt)
t0=-3*pi+1000;ts=3*pi+1000;dt=0.01;
t=t0:dt:ts;
Rt=0.5*(0.5.*rectpuls((t+1000),2*T)+0.5.*rectpuls((t-1000),2*T)).*(rectpuls(t-1000,2*T1)+rectpuls(t+1000,2*T1));
subplot(1,2,2);
plot(t,Rt)
如圖1所示,已知e(t)=sin(2πt)/2πt,畫出e(t),e1(t),r(t)的頻譜圖,并比較e(t)與r(t)。系統中理想帶通濾波器的傳輸特性如圖2所示,其相位特征φ(ω)=0.
t0=-2*pi;ts=2*pi;dt=0.01;
t=t0:dt:ts;
e=sin(2*pi*t)./(2*pi*t);
plot(t,e)
t0= 0.01;ts=2;dt=0.018;
t=t0:dt:ts;