资源描述:
《用 ideallp 函数设计 FIR 线性相位滤波器.doc》由会员上传分享,免费在线阅读,更多相关内容在行业资料-天天文库。
1、用ideallp函数设计FIR线性相位滤波器%G038%用ideallp函数设计FIR线性相位滤波器%h_fig1=figure;%创建第1个图形窗口set(h_fig1,'unit','normalized','position',[0.0,0.0,0.99,0.94]);set(h_fig1,'defaultuicontrolunits','normalized');set(gcf,'color','w')h_text1=uicontrol(gcf,'Style','text','Position',[0.2,0.9,0.7
2、,0.07],...%在第1个图形窗中创建文本框'String','FIR线性相位滤波器','FontName','黑体','ForegroundColor','r',...'FontSize',38,'FontWeight','Bold','BackgroundColor',[1,1,1]);set(gcf,'color','w')h_text2=uicontrol(gcf,'style','text','BackgroundColor','w','Position',[0.01,0.58,0.2,0.1],...%在第1个图
3、形窗中创建文本框'string','滤波器类型','ForegroundColor','r','FontWeight','Bold','FontSize',20)h_pushbutton1=uicontrol(h_fig1,'Style','PushButton','Position',[0.07,0.2,0.08,0.07],...%创建命令钮h_pushbutton2,定义其属性'string','退出','BackgroundColor',[0.80.90.8],'ForegroundColor','r','FontSiz
4、e',14,'FontWeight','Bold',...'callback','delete(h_fig1)')hr_1=uicontrol(gcf,'style','radio','BackgroundColor','w',...%创建第1个radio钮'string','低通','ForegroundColor','r','FontWeight','Bold','FontSize',10,...'position',[0.04,0.53,0.08,0.05]);set(hr_1,'value',get(hr_1,'Max'
5、));set(hr_1,'callback',[...%定义第1个radio钮的回调函数'set(hr_1,''value'',get(hr_1,''max'')),','set(hr_2,''value'',get(hr_2,''min'')),',...'set(hr_3,''value'',get(hr_3,''min'')),','set(hr_4,''value'',get(hr_4,''min'')),',...'cb05(h_axes1,h_axes2,h_axes3,h_axes4,1)']);hr_2=uico
6、ntrol(gcf,'style','radio','BackgroundColor','w',...%创建第2个radio钮'string','高通','ForegroundColor','r','FontWeight','Bold','FontSize',10,...'position',[0.12,0.53,0.08,0.05]);set(hr_2,'value',get(hr_2,'Min'));set(hr_2,'callback',[...%定义第2个radio钮的回调函数'set(hr_2,''value'',ge
7、t(hr_2,''max'')),','set(hr_1,''value'',get(hr_1,''min'')),',...'set(hr_3,''value'',get(hr_3,''min'')),','set(hr_4,''value'',get(hr_4,''min'')),',...'cb05(h_axes1,h_axes2,h_axes3,h_axes4,2)']);hr_3=uicontrol(gcf,'style','radio','BackgroundColor','w',...%创建第3个radio钮'st
8、ring','带通','ForegroundColor','r','FontWeight','Bold','FontSize',10,...'position',[0.04,0.45,0.17,0.05]);set(hr_3,'value',get(hr_3,'