利用MATLAB GUI设计滤波器界面,可以设计IIR滤波器 - matlab通信信号 - 谷速源码
下载频道> 资源分类> matlab源码> 通信信号> 利用MATLAB GUI设计滤波器界面,可以设计IIR滤波器

标题:利用MATLAB GUI设计滤波器界面,可以设计IIR滤波器
分享到:

所属分类: 通信信号 资源类型:程序源码 文件大小: 404.83 KB 上传时间: 2019-06-16 21:58:42 下载次数: 66 资源积分:1分 提 供 者: zhangsan456 AFD
内容:
利用MATLAB GUI设计滤波器界面,可以设计IIR滤波器
function SpecifyFilter_LoadStrFilter (handles)
% SpecifyFilter_LoadStrFilter is a subfile of the AnalogFilter GUI collection
%
 
% SpecifyFilter_LoadStrFilter sets the ui elements in guiFilter
% to reflect strFilter
 
global strFilter
 
% Purpose
switch strFilter .sPurpose
    case 'Lowpass'
        set(handles.uipmPurpose,'Value',1)
    case 'Highpass'
        set(handles.uipmPurpose,'Value',2)     
    otherwise error(['Unidentified sPurpose of strFilter in ' mfilename])
end
 
% Type
switch strFilter .sType
    case 'Bessel'
        set(handles.uipmType,'Value',1)
    case 'Butterworth'
        set(handles.uipmType,'Value',2)     
    case 'Chebychev I'
        set(handles.uipmType,'Value',3)     
    case 'Chebychev II'
        set(handles.uipmType,'Value',4)     
    case 'Elliptic'
        set(handles.uipmType,'Value',5)  
    otherwise
        error(['Unknown type in ' mfilename])
end
 
% Order
set(handles.uipmOrder,'Value',strFilter .nOrder)
 
% fc, fcUnits
if strFilter .fFc >= 1e6
    set(handles.uipmFcUnits,'Value',4)
    set(handles.uitxFc, 'String', num2str(strFilter .fFc/1e6))
elseif strFilter .fFc >= 1000
    set(handles.uipmFcUnits,'Value',3)
    set(handles.uitxFc, 'String', num2str(strFilter .fFc/1e3))
elseif strFilter .fFc >= 1
    set(handles.uipmFcUnits,'Value',2)
    set(handles.uitxFc, 'String', num2str(strFilter .fFc))
elseif strFilter > 0
    set(handles.uipmFcUnits,'Value',1)
    set(handles.uitxFc, 'String', num2str(strFilter .fFc*1000))
else
    error('Fc in strFilter is negative')
end
 
% Gp
set(handles.uitxGp,'String',num2str(strFilter .fGp))
 
% Gs
set(handles.uitxGs,'String',num2str(strFilter .fGs))
 
% Gain
set(handles.uitxGain,'String',num2str(strFilter .fGain))
 
% status
set(handles.uitxStatus,'String',strFilter .sStatus)
 
%
set(handles.figSpecifyFilter,'Name',['Analog Filter Designer: ' strFilter .sFileName])
 
% update the dimmed status
switch strFilter .sType
    case {'Bessel', 'Butterworth'}
        set(handles.uitxGp,'Enable','off')
        set(handles.uitxGpGp,'Enable','off')
        set(handles.uitxGpdB,'Enable','off')
        set(handles.uitxGs,'Enable','off')
        set(handles.uitxGsGs,'Enable','off')
        set(handles.uitxGsdB,'Enable','off')
    case 'Chebychev I'
        set(handles.uitxGp,'Enable','on')
        set(handles.uitxGpGp,'Enable','on')
        set(handles.uitxGpdB,'Enable','on')
        set(handles.uitxGs,'Enable','off')
        set(handles.uitxGsGs,'Enable','off')
        set(handles.uitxGsdB,'Enable','off')
    case 'Chebychev II'
        set(handles.uitxGp,'Enable','off')
        set(handles.uitxGpGp,'Enable','off')
        set(handles.uitxGpdB,'Enable','off')
        set(handles.uitxGs,'Enable','on')
        set(handles.uitxGsGs,'Enable','on')
        set(handles.uitxGsdB,'Enable','on')
    case 'Elliptic'
        set(handles.uitxGp,'Enable','on')
        set(handles.uitxGpGp,'Enable','on')
        set(handles.uitxGpdB,'Enable','on')
        set(handles.uitxGs,'Enable','on')
        set(handles.uitxGsGs,'Enable','on')
        set(handles.uitxGsdB,'Enable','on')
    otherwise error(['Unidentified type in ' mfilename])
end

文件列表(点击上边下载按钮,如果是垃圾文件请在下面评价差评或者投诉):

AFD/
AFD/Analog Filter Designer.pdf
AFD/BuildCircuit.mat
AFD/BuildCircuit_FindZ1P1K1.m
AFD/BuildCircuit_LastStage.m
AFD/BuildCircuit_SelectCircuit.m
AFD/BuildCircuit_StageInformation.m
AFD/BuildCircuit_UpdateComponents.m
AFD/BuildCircuit_Zpk2Circuit.m
AFD/FilterOrder_HelpContext.m
AFD/FilterPictures.mat
AFD/GuiBuildActiveCircuit.fig
AFD/GuiBuildActiveCircuit.m
AFD/GuiBuildStageInformation.fig
AFD/GuiBuildStageInformation.m
AFD/GuiFilterOrder.fig
AFD/GuiFilterOrder.m
AFD/GuiListFrequencyResponse.fig
AFD/GuiListFrequencyResponse.m
AFD/GuiListTransferFunction.fig
AFD/GuiListTransferFunction.m
AFD/GuiPlotFrequencyResponse.fig
AFD/GuiPlotFrequencyResponse.m
AFD/GuiPlotUserData.fig
AFD/GuiPlotUserData.m
AFD/GuiSpecifyFilter.fig
AFD/GuiSpecifyFilter.m
AFD/GuiTimeResponse.fig
AFD/GuiTimeResponse.m
AFD/MenuAnalyzePoleZeroPlot.m
AFD/MenuFileNew.m
AFD/MenuFileOpen.m
AFD/MenuFileSave.m
AFD/MenuFileSaveAs.m
AFD/MenuHelpAbout.m
AFD/SpecifyFilter_HelpContext.m
AFD/SpecifyFilter_LoadPicture.m
AFD/SpecifyFilter_LoadStrFilterObject.m
AFD/SpecifyFilter_SaveStrFilterObject.m
AFD/SpecifyFilter_TypeChange.m
AFD/StageInformation.mat
AFD/Utility_CalculateTime.m
AFD/Utility_EngOutput.m
AFD/Utility_GetDefaultFilterObject.m
AFD/Utility_HelpIcon.mat
AFD/Utility_Round2Tolerance.m
AFD/Utility_zpk.m
AFD/Utility_zpk2ss.m
AFD/afd.m
AFD/ekg.txt
AFD/ekg60.txt
AFD/ekg60lot.txt
AFD/ekgnoise.txt
AFD/ekgsim.txt
AFD/ekgsim1.txt
AFD/ekgsim2.txt
AFD/ekgsim3.txt
AFD/license.txt
AFD/out.txt
AFD/sin100hz.txt
AFD/sin10hz.txt
AFD/sin10khz.txt
AFD/sin1hz.txt
AFD/sin1khz.txt
AFD/sq100hz.txt
AFD/sq10hz.txt
AFD/sq10khz.txt
AFD/sq1hz.txt
AFD/sq1khz.txt
AFD/step.txt

关键词: 滤波器界面 IIR滤波器

Top_arrow
回到顶部
联系方式| 版权声明| 招聘信息| 广告服务| 银行汇款| 法律顾问| 兼职技术| 付款方式| 关于我们|
网站客服网站客服 程序员兼职招聘 程序员兼职招聘
沪ICP备19040327号-3
公安备案号:沪公网安备 31011802003874号
库纳格流体控制系统(上海)有限公司 版权所有
Copyright © 1999-2014, GUSUCODE.COM, All Rights Reserved