R=8Ω时:
R=9Ω时:
R=10Ω时
实验六 频率响应
一、实验目的
1、学习有关频率响应的相关概念 2、学习matlab的频率计算
二、实验内容
1、一阶低通电路的频率响应
若以ùc为响应,求频率响应函数,并画出其幅频响应和相频响应。 解:使用matlab的实验命令为: clear,format compact ww=0:0.2:4; H=1./(1+j*ww); figure(1)
subplot(2,1,1),plot(ww,abs(H)), grid,xlabel('ww'),ylabel('angle(H)') subplot(2,1,2),plot(ww,angle(H)) grid,xlabel('ww'),ylabel('angle(H)') figure(2)
subplot(2,1,1),semilogx(ww,20*log(abs(H))) grid,xlabel('ww'),ylabel('dB')
subplot(2,1,2),semilogx(ww,angle(H)) grid,xlabel('ww'), ylabel('angle(H)')
输出结果: A 线性频率
B 数字频率
2、频率响应:二阶低通电路
令H0=1,画出Q=1/3,1/2,1/√2,1,2,5的幅频相频响应,当Q=1/√2时,成为最平幅度特性,即在通带内其幅频特性最为平坦。 使用matlab命令为: clear,format compact
for Q=[1/3,1/2,1/sqrt(2),1,2,5] ww=logspace(-1,1,50);
H=1./(1+j*ww/Q+(j*ww).^2); figure(1)
subplot(2,1,1),plot(ww,abs(H)),hold on subplot(2,1,2),plot(ww,angle(H)),hold on figure(2)
subplot(2,1,1),semilogx(ww,20*log10(abs(H))),hold on subplot(2,1,2),semilogx(ww,angle(H)),hold on end
figure(1),subplot(2,1,1),grid,xlable('w'),ylable('abs(H)') subplot(2,1,2),grid,xlable('w'),ylable('angle(H))')
figure(2),subplot(2,1,1),grid,xlable('w'),ylable('abs(H)') subplot(2,1,2),grid,xlable('w'),ylable('angle(H))')
仿真结果如下:
3、频率响应:二阶带通电路 使用matlab命令为: clear,format compact H0=1;wn=1;
for Q=[5,10,20,50,100] w=logspace(-1,1,50);
H=H0./(1+j*Q*(w./wn-wn./w)); figure(1)
subplot(2,1,1),plot(w,abs(H)),grid,hold on subplot(2,1,2),plot(w,angle(H)),grid,hold on figure(2)
subplot(2,1,1),semilogx(w,20*log10(abs(H))),grid,hold on subplot(2,1,2),semilogx(w,angle(H)),grid,hold on end
输出结果:
A 线性频率特性