matlab机考样题(带答案)

matlab机考样题(带答案)

ID:6579035

大小:68.00 KB

页数:7页

时间:2018-01-18

matlab机考样题(带答案)_第1页
matlab机考样题(带答案)_第2页
matlab机考样题(带答案)_第3页
matlab机考样题(带答案)_第4页
matlab机考样题(带答案)_第5页
资源描述:

《matlab机考样题(带答案)》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库

1、MATLAB机考样题:(1)Generateandplotsequence,with.n1=-20:20;x1=2*cos(pi/8*n1);n2=n1-4;x2=2*cos(pi/8*n2);subplot(2,1,1);plot(n1,x1);subplot(212);plot(n2,x2);(2)WriteaMATLABprogramtocomputeandplottheimpulseresponseofacausalfinite-dimensionaldiscrete-timesystemcharacterizedbyadifferenceequationofthefollo

2、wingform:N=input('请输入你要求的点数N=');num=[1.80.34-1.32-0.86];den=[10.30.5-0.72];x=[1zeros(1,N-1)];(单位冲击)y=filter(num,den,x);plot(0:N-1,y);(3)WriteaMATLABprogramtocomputeanddisplaythepolesandzeros,tocomputeanddisplaythesecond-orderfactoredform,andtogeneratethepole-zeroplotofaz-transformthatisaratioof

3、twopolynomialsinz-1.UsingthisprogramtoanalyzethefollowingG(z):num=[8.16.93-23.8210.5];den=[11.520.18-0.1768];sos=tf2sos(num,den)%tf2sos表示为1/z的升幂zplane(num,den)(4)TrytogiveaprogramtoevaluatethefollowingDTFTintherange:%由于用freqz计算频点至少是2个,所以至少输入两个频点w1=input('请输入你要计算的频点w1=');w2=input('请输入你要计算的频点w2='

4、);w=[w1w2];num=[25953];den=[545211];h=freqz(num,den,w)(6)WriteaMATLABprogramtocomputeandplotthemagnituderesponseofacausalLTIdiscrete-timesystemwithatransferfunctiongivenbynum=0.15*[10-1];den=[1-0.50.7];[h,w]=freqz(num,den,512);plot(w/pi,abs(h));(7)ConsiderthefollowingFIRtransferfunction:UsingMA

5、TLABtodetermineitszerolocationsandplotitsmagnitudeandphaseresponse.h=[10.6.49-0.48-0.14-0.120.09];figure(1)zplane(h,1);[H,w]=freqz(h,1,512);figure(2)plot(w/pi,abs(H));figure(3)plot(w/pi,angle(H));(8)Givenasignal,whenusingasamplingfrequencyfT=20KHz,plotthemagnitudeandphasespectrumofthesampledseq

6、uence(givenlength-64).fs=2e4;n=0:63;x=4*n/fs+cos(0.1*pi*n/fs);h=fft(x,1024);figure(1);plot(0:2/1023:2,abs(h));figure(2);plot(0:2/1023:2,angle(h));(9)designanIIRbutterworthdigitallowpassfilterwiththefollowingspecifications:samplingrateof40kHz,passbandedgefrequencyof4kHz,stopbandedgefrequencyof8k

7、Hz,passbandrippleof0.5dB,andaminimumstopbandattenuationof40dB,plotfrequency-magnitudeandcheckifyourdesignfitsthespecification.fs=40;wp=4*2/fs;%wp<1,没有乘piws=8*2/fs;%ws<1,没有乘piap=0.5;as=40;[n,wn]=buttord(wp,ws,ap,as);[num,den]=butte

当前文档最多预览五页,下载文档查看全文

此文档下载收益归作者所有

当前文档最多预览五页,下载文档查看全文
温馨提示:
1. 部分包含数学公式或PPT动画的文件,查看预览时可能会显示错乱或异常,文件下载后无此问题,请放心下载。
2. 本文档由用户上传,版权归属用户,天天文库负责整理代发布。如果您对本文档版权有争议请及时联系客服。
3. 下载前请仔细阅读文档内容,确认文档内容符合您的需求后进行下载,若出现内容与标题不符可向本站投诉处理。
4. 下载文档时可能由于网络波动等原因无法下载或下载错误,付费完成后未能成功下载的用户请联系客服处理。