版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
Name:Chenyifan20232121006
Section:
LaboratoryExercise4
LINEAR,TIME-INVARIANTDISCRETE-TIMESYSTEMS:FREQUENCY
DOMAINREPRESENTATIONS
4.1TRANSFERFUNCTIONANDFREQUENCYRESPONSE
Project4.1TransferFunctionAnalysis
Answers:
Q4.1ThemodifiedProgram33_1tocomputeandplotthemagnitudeandphasespectraofamovingaverage
filterofEq.(2.13)forO<co<2nisshownbelow:
<Insertprogramcodehere.Copyfromm-file(s)andpaste.>
w=0:pi/51l:2*pi;
M=input('M=');
num=oncs(I,M)/M;
h=freqz(num,l,w);
subplot(2,l,l);
plot(w/pi,abs(h));grid;
出招(旧'人]j\omega})幅度谱)
xlabclC'omcgaApTXylabcl(振幅,);
subplot(2,l,2);
plot(w/pi,angle(h));grid;
tilleC相位谱H(eA{j\omega}),);
xlabelCumegaApi,);ylabel(以弧度为单位的相位工
ThisprogramwasrunforthefallowingthreedifferentvaluesofMandtheplotsofthecorrespondingfrequency
responsesareshownbelow:
<Inserth/ATLABfigure(s)here.Copyfromfigurewindow(s)andpaste.>
Thetypesofsymmetriesexhibitedbythemagnitudeandphasespectraaredueto-
Thetypeoffilterrepresentedbythemovingaveragefilteris
M-3
M=10;
M=20;
TheresultsofQuestionQ2.1cannowbeexplainedasfollows-Bythegraph,youcanseethatitrepresentsalow-
passfilter.
Q4.2Theplotofthefrequenc/responseofthecausalLTIdiscrete-timesystemofQuestionQ4.2obtainedusing
themodifiedprogramisgivenbelow:
<InsertMATLABfigure(s)here.Copyfromfigurewindow(s)andpaste.>
w=0:pi/51l:pi;
num=[0.150-0.15];
den-[l-0.50.7],
h=freqz(num,den,w);
subplot(2,l,l);
plot(w/pi,abs(h));grid;
(铲{j'omega})幅度谱)
xlabel(\omega八pi);ylabel(振幅);
subplot(2,l,2);
plot(w/pi,angle(h));grid;
title,相位谱H(eA{j\omega}),);
xlabelCVomcgaApi1);
ylabelC以弧度为单位的相位,):
Thetypeoffilterrepresentedbythistransferfunctionis-Itsaysbandpassfilterisobtainedbydiagrams
canbeBPF
Q4.3Theplotofthefrequenc/responseofthecausalLTIdiscrete-timesystemofQuestionQ4.3obtainedusing
themodifiedprogramisgivenbelow:
<InsertMATLABfigure(s)here.Copyfromfigurewindow(s)andpaste.>
w=0:pi/511:pi;
num=[0.150-0.15];
dcn=[0.7-0.51]
h=frcqz(num,dcn,vv);
subplot(2,l,l);
plot(w/pi,abs(h));grid;
tiUe(H(e八{j'omega})幅度谱);
xlabcl(*\omcga八pi);ylabclC振幅
subplot(2,l,2);
plot(w/pi,angle(h));grid;
tilleC相位谱H(eA{j\omega}),);
xlabel(,\omegaApi,);
ylabclC以弧度为单位的相位,);
Thetypeoffilterrepresentedbythistransferfunctionis-Ocausallineartime-invariantdiscretetime
systemfrequencyresponse,determinethetypefilter
ThedifferencebetweenthetwofillersofQuestions4.2and4.3is-Moreonthetopicoffigure,the
amplitudespectrumisthesame,thephasespectrum,onthetopicthatiscontinuous,andkincsofphase
jumpline,.
IshallchoosethefilterofQuestionQ4.3forthefollowingreason-theamplitudespectrumisthesame,the
phasespectrum,onthetopicthatiscontinuous,andkindsofphasejumpline.
Q4.6Thepole-zeroplotsofthetwofiltersofQuestions4.2and4.3developedusingzplaneareshownbelow:
w=0:pi/511:pi;
num=[0.150-0.15];
den=[l-0.50.7];
h=zplane(num,den);
w=0:pi/511:pi;
num=[0.150-0.15];
dcn=[0.7-0.51];
h=zplanc(num,dcn);
<InsertIVATLABfigure(s)here.Copyfromfigurewindow(s)andpaste.>
Fromtheseplotswemakethefollowingobservations:Differentfunction,zerozeroandpolepolefigurewith
differentrelativepositionofthecircle
4.2TYPESOFTRANSFERFUNCTIONS
Project4.2Filters
AcopyofProgramP4_1isgivenbelow:
<Insertprogramcodehere.Copyfromm-file(s)andpaste.>
elf;
fc=0.25;
n=[-6.5:1:6.5];
y=2*fc*sinc(2*fc*n);k=n+6.5;
stcm(k,y);titlc('N=13');axis([013-0.20.6]);
xlabelC时间序号n«);ylab或振幅为grid
Answers:
Q4.7TheplotoftheimpulseresponseoftheapproximationtotheideallowpassfilterobtainedusingProgram
P4_1isshownbelow:
<Inserth/ATLABfigure(s)here.Copyfromfigurewindow(s)andpaste.>
elf;
fc=0.25;
n=[-6.5:l:6.5];
y=2*fc*sinc(2*fc*n);k=n+6.5;
stem(k,y);title(,N=13,);axis([013-0.20.6]);
xlabelf舟间序号n'ylabelC振幅)grid
ThelengthoftheFIRlowpassfilteris-14
ThestatementinProgramP4_1determiningthefilterlengthis-n=[-6,5:1:6,5];
Theparametercontrollingthecutcfffrequencyis-Fcparameterscontrolthecutofffrequency
Q4.8TherequiredmodificationstoProgramP4_1tocomputeandplottheimpulseresponseoftheFIRlowpass
filterofProject4.2withalengthof20andacutofffrequencyof⑴「=0.45areasindicatedbelow:
<Insertprogramcodehere.Copyfromm-file(s)andpaste.>
elf;
fc=0.45/(2*pi);
n=[-9.5:1:9.5];
y=2*fc*sinc(2*fc*n);k=n+9.5;
stem(k,y);title(,N=20,);axis([020-0.20.6]);
xlabelf0\t间序号rT);ylabelC振幅上grid
Theplotgeneratedbyrunningthemodifiedprogramisgivenbelov/:
<Inserth/ATLABfigure(s)here.Copyfromfigurewindow(s)andpaste.>
Q4.9TherequiredmodificationstoProgramP4_1tocomputeandplottheimpulseresponseoftheFIRlowpass
filterofProject4.2withalengthof15andacutofffrequencyok。-=0.65areasindicatedbelow:
<Insertprogramcodehere.Copyfromm-file(s)andpaste.>
elf;
fc=0.65/(2*pi);
n=[-7.5:1:6.5];
y=2*fc*sinc(2*fc*n);k=n+7.5;
stem(k,y);title(,N=15,);axis([014-0.20.6]);
xlabelC舟间序号rT);ylabel,振幅'grid
Theplotgeneratedbyrunningthemodifiedprogramisgivenbelov/:
<InsertK/ATLABfigure(s)here.Copyfromfigurewindow(s)andpaste.>
Q4.11Aplotofthegainresponseofalength-2movingaveragefilterobtainedusingProgramP4_2isshown
below:
<InsertI7ATLABfigure(s)here.Copyfromfigurewindow(s)andpaste.>
unction[g,w]=gain(num,den)—gain函数
w=0:pi/255:pi;
h=freqz(nuin,den,w);
g=20*logl0(abs(h));
M=2;一虐动平均低通滤波器的增益响应程序
num=ones(1
[g,w]=gain(num,l);
plot(w/pi,g);grid;
axis([01-500.5])
xlabelC\omcgaApiXylabclC单位为db的增益,);
titlc(['M=\num2str(M)])
TwwWgHhwfAQ一
hCuu4t
eccH=hH=n--c
u=22.Tcir1a
po0*0*e-s2n
_..a*h<p?e=b
239co.qie单位为db的增益
o*4og*z/on-p,
p2rs5J1I|IaII
二h।
i3s1s5-o2Te。443322-1
0(o;u5gghe0505050505。
h2(-rmen
e>amp.avo
g(w-rt
a1bnmreh
isCcLr:-lqa
nu(ngcgut0
(Haaoi-
r2)w-darh,
e*))nevdee
3;"二e
s)hr3
pneam,
o)kgod0
n)(redB.
snp2
ufmc
emC=cE
o.oetao
rdpr-f
asc一f0
cyf.
cnanr3
a)frse
s\req
cogou
amiPe
dvn.0
emerc4
,noy
o=fg
febrs一
3(ea
so_ma20
s)wT.
eP二
ca-435
-n—d
o一d2
rpB
siao。0
s.
0tc6
tbeo
aVm
r-p0
elu.
dQ7
ua
sn
i
nd0
gP
h-500
e二9
mh
oe
dg
di
en
dr
pe
rs
op
go
rn
as
me
o
s一fF
sar
hco
oam
wst
nch
ae
bd
e-p
-e0
o0-
wf
-K
_
e
n
g
t
h
,
and
)
ow(s
wind
脂
w
s
q
p长
0
册
.>
paste
-
isat
cade
ecas
ofth
ency
frequ
toff
Bcu
e3-d
atth
eenth
bes
itcan
plot
the
From
pi\
0.3*
wc=
\
ow:
nbel
give
4_3is
amP
Progr
yof
Acop
9
Q4.1
.>
aste
andp
e(s)
m-fil
om
pyfr
Co
here.
ode
mc
rogra
ertp
<Ins
ell;
;
-63]
30.5
-8.5
b=[1
;
lr(b)]
1flip
=[b8
num1
;
r(b)]
flipl
181
=[b8
num2
;
lr(b)]
-flip
=[b0
num3
)];
iplr(b
1-fl
81-8
4=[b
num
-1;
m1)
th(nu
:leng
n1=0
-1;
m2)
th(nu
:leng
n2=0
);
um1
(n1,n
stem
2,1);
lot(2,
SLbp
rid;
幅,);g
el(振
ylab
n");
间序号
el('时
xlab
器');
滤波
响应
冲激
有限
CI型
title
SLbplot(2,2,2);stem(n2,num2);
xlabel('时间序号n');ylabel。振幅');grid;
title('2型有限冲激响应滤波器');
scbplot(2,2,3);stem(n1,num3);
xlabe(时间序号n);ylabel。振幅)grid;
title('3型有限冲激响应滤波器');
subplot®2,4);stem(n2,num4);
xlabel('时间序号n');ylabel(f振幅)grid;
title('4型有限冲激响应滤波器');
pause
SLbplot(2,2,1);zplane(num1,1);
titlef'1型有限冲激响应滤波器');
sibplot(2,2,2);zplane(num2,1);
title('2型有限冲激响应滤波器');
subplot(2,2,3);zplane(num3,1);
title('3型有限冲激响应滤波器');
scbplot(2,2,4);zplane(num4,1);
title('4型有限冲激响应滤波器');
dispfl型有限冲激响应滤波器的零点是');
disp(roots(num1));
disp('2型有限冲激响应滤波器的零点是');
disp(roots(num2));
disp('3型有限冲激响应滤波器的零点是');
disp(roots(num3));
disp('4型有限冲激响应滤波器的考点是');
disp(roots(num4));
TheplotsoftheimpulseresponsesofthefourFIRfiltersgeneratedbyrunningProgramP4_3aregivenbelow:
<InsertMATLABfigure(s)here.Copyfromfigurewindow(s)andpaste.>
Fromtheplotswemakethefollowingobservations:
Fiter#1isoflength8witha___80impulseresponseandisthereforeaType_linear-phase
FIRfilter.
Fiter#2isoflength10witha___80impulseresponseandisthereforeaType_linear-
phaseFIRfilter.
Filer#3isoflength______8____witha____60________impulseresponseandisthereforeaType_linear-phase
FIRfilter."
Fiter#4isoflength10witha___80impulseresponseandisthereforeaType_linear-
phaseFIRfilter.
FromthezerosofthesefiltersgeneratedbyProgramP43weobservethat:
Filter#1haszerosatz=2.9744,2.0888,0.9790+1.4110i,0.9790-1.41lOi,0.3319+0.4784i,0.3319-
0.4784i,0.4787,0.3362
Filter#2haszerosatz=3.7585+1.5147i,3.7585-1.5147i,0.6733+2.6623i,0.6733-2.6623i,-
1.0000,0.0893+O.353Oi,0.0893-0.3530i,0.2289+0.0922i,0.2289-0.0922i
Fiter#3haszerosatz=4.7627,1.6279+3.0565i,1.6279-3.0565i,-1.0000,1.0000
0.1357+0.2549i,0.1357-0.2549i,0.2100
Fiter#4haszerosatz=3.4139,1.6541+1.5813i,1.6541-1.5813i,-0.0733+0.9973i,-0.0733-
0.9973i,1.0000,0.3159+0.3020i,0.3159-0.30201,0.2929
PlotsofthephaseresponseofeachofthesefiltersobtainedusingMATLABareshownbelow:
<InsertMATLABfigurfi(s)here.Copyfromfigurewindow(s)andpaste.>
Fromtheseplotsweconcludethateachofthesefiltershave
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 新学期前置学习|乐理串讲与乐理考级预备资料
- 学校突发教育设备故障致教学中断应急预案
- 学校社团管理制度
- 学校防溺水安全管理制度
- 物业小区停车秩序维护管理制度及流程
- 教师师德师风廉洁从教整改措施
- 国家级非物质文化遗产 藏族造纸技艺
- 老旧小区乡村建房改造分类真题(附答案)
- 造价监理安全消防证书真题(附答案)
- 教资考前仿真模拟终极预测卷含完整答案
- 校园消防隐患排查整治
- 产业园运营运作方案
- 2026成都环境投资集团有限公司下属子公司招聘工艺管理岗等岗位21人笔试题库及答案详解【真题汇编】
- 决胜分班考:2026江苏省新高一入学摸底测试全科高频考点与模拟训练
- GB/T 24026-2026环境标志和声明足迹信息交流的原则、要求和指南
- 国企中层干部竞聘测试题库(+答案)
- 施工暖通管道安装方案
- 湖北新八校2026届高三第二次联考(二模)语文试题及参考答案
- 家家悦超市成本控制策略与实践研究
- 永辉超市门店SOP标准作业流程制度规定
- 2026年基层应急管理规范考试试题及答案
评论
0/150
提交评论