2022年matlab滤波器与均衡器设计方案.docx
《2022年matlab滤波器与均衡器设计方案.docx》由会员分享,可在线阅读,更多相关《2022年matlab滤波器与均衡器设计方案.docx(19页珍藏版)》请在淘文阁 - 分享文档赚钱的网站上搜索。
1、精品学习资源封面欢迎下载精品学习资源作者: PanHongliang仅供个人学习欢迎下载精品学习资源Digital signal andanalysisTitle:A filter and equilizerName:YangxiaoClass:Master of mechanical engineering 1302StudentID:M202170503欢迎下载精品学习资源Abstrac:tDesigning somekinds offiltersbyusingmatlab.We can understand thesignal processing offiltermorecompreh
2、ensive by analyzingthefilteringpropertiesofdifferentfilters.Designing anadjustable parameter of digital filter which is called equalizer.In this paper, the digital equalizer which is based on MATLAB platform designing has the functions ofaccessing Wav file , filtering and playing.欢迎下载精品学习资源Keyword:M
3、atlab,Filter,Equalizer1.PrefaceMATLAB is called Matrix Laborator,ywhich is designed by the欢迎下载精品学习资源United States MathWorks company.Its a commercial mathematical software. Matlab can be use for Matrix operations, mapping functionsand data, algorithm, creating the user interface, connect to other pro
4、gramming languages procedures, mainly used in engineering calculations, control design, signal processing and communications, image processing, signal detection, design and financial modeling analysis and other fields. GUI Graphical User Interface, referred to as GUI, known Graphical User Interface
5、is displayed using the graphical user interface of computer operations. Matlab has a powerful GUl tool. In this report, by using matlab GUI tool we could design a signal filter and equalizer.The filter Can be divided into low-pass, high-pass filter, band pass andband-stop filter.Low-pass filter: it
6、allows signal in low frequency or dc欢迎下载精品学习资源component through, suppress the high frequency component or the interference and noise.High-pass filter: it allows the signal in high frequency , restrain low frequency or dc component.Band-pass filter: it allows a spectrum of signal through and restrain
7、 the signal below or above the spectrum, interference and noise.Band-stop filter: it inhibit the signal within a certain frequency band and pass the signal outside the spectrum.2. IntroduceThe filter which is designed by using matlab have four functions :low- pass,high-pass,band-stop and band-pass .
8、Every function could input the cut-off frequencies.The equalizer could filter the wav file inputted as we want.The interface is that:欢迎下载精品学习资源3. Design Principles2.1 Interface欢迎下载精品学习资源The task is to design the filter and equalizer which can edit the inputting signal as we want and choose the frequ
9、ency spectrum to pass.3.1 the standard signal inputWe design a signal generator which is used to generator standard waveform such as sin,square,triangular,sawtooth and noise.And we can decide whether adding different waves .The program is:Fs=10000;欢迎下载精品学习资源N=400;x=linspace0,N/Fs,N;t=gethandles.Wave
10、Make,Value;f=str2doublegethandles.frequency,String;a=str2doublegethandles.amplitude,String; p=0;switch tcase 1y=a*sin2*pi*x*f+p;if gethandles.add,Value=0.0 handles.y=y;elsehandles.y=handles.y+y; endcase 2.case 5y=a*2*randsizex-1 ;if gethandles.add,Value=0.0 handles.y=y;elsehandles.y=handles.y+y;欢迎下载
11、精品学习资源endend handles.inputtype=3;guidatahObject,handles;plothandles.axes1,handles.y; xlim0 200 ;temple=handles.y;f=linspace0,Fs/2,N/2;P=2*ffttemple,N/N ;Pyy=sqrtP.* conjP;plothandles.axes2,f,Pyy1:N/2;The interface is:3.1 the image of waveform3.2 the wave filteringBy choosing the working mode of filt
12、er and input cut-off frequencies we can realize the filtering.Theprogram is:y=handles.y;FC=str2doublegethandles.hf,string;Fs=22000;n=44100;N=8;Wn=FC/Fs/2;欢迎下载精品学习资源% the low-pass program b,a = butterN,Wn,low ;z=filterb,a,y ;P=fftz,n ;f=linspace0,Fs/2,n/2;Pyy=2*sqrtP.* conjP/n;plothandles.axes3,z;plo
13、thandles.axes4,f,Pyy1:n/2;handles.z=z;guidatahObject,handles;By running the program we can realize low-pass filter3.2 the image of low-pass filter The high-pass program is:b,a = butterN,Wn,high ;z=filterb,a,y ;P=fftz,n;f=linspace0,Fs/2,n/2;Pyy =2*sqrtP.* conjP/n;plothandles.axes3,z;plothandles.axes4
14、,f,Pyy1:n/2;handles.z=z;guidatahObject,handles;欢迎下载精品学习资源By running the program we can realize high-pass filter3.3 the image of high-pass filter The band-stop program is:b,a = butterN,Wn,stop;z=filterb,a,y ;P=fftz,n;f=linspace0,Fs/2,n/2;Pyy=2*sqrtP.* conjP/n;plothandles.axes3,z;plothandles.axes4,f,P
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- 2022 matlab 滤波器 均衡器 设计方案
限制150内