function varargout = Filter(varargin)
% FILTER M-file for Filter.fig
% FILTER, by itself, creates a new FILTER or raises the existing
% singleton*.
%
% H = FILTER returns the handle to a new FILTER or the handle to
% the existing singleton*.
%
% FILTER('CALLBACK',hObject,eventData,handles,...) calls the local
% function named CALLBACK in FILTER.M with the given input arguments.
%
% FILTER('Property','Value',...) creates a new FILTER or raises the
% existing singleton*. Starting from the left, property value pairs are
% applied to the GUI before Filter_OpeningFunction gets called. An
% unrecognized property name or invalid value makes property application
% stop. All inputs are passed to Filter_OpeningFcn via varargin.
%
% *See GUI Options on GUIDE's Tools menu. Choose "GUI allows only one
% instance to run (singleton)".
%
% See also: GUIDE, GUIDATA, GUIHANDLES
% Edit the above text to modify the response to help Filter
% Last Modified by GUIDE v2.5 19-Dec-2020 23:10:20
% Begin initialization code - DO NOT EDIT
gui_Singleton = 1;
gui_State = struct('gui_Name', mfilename, ...
'gui_Singleton', gui_Singleton, ...
'gui_OpeningFcn', @Filter_OpeningFcn, ...
'gui_OutputFcn', @Filter_OutputFcn, ...
'gui_LayoutFcn', [] , ...
'gui_Callback', []);
if nargin && ischar(varargin{1})
gui_State.gui_Callback = str2func(varargin{1});
end
if nargout
[varargout{1:nargout}] = gui_mainfcn(gui_State, varargin{:});
else
gui_mainfcn(gui_State, varargin{:});
end
% End initialization code - DO NOT EDIT
% --- Executes just before Filter is made visible.
function Filter_OpeningFcn(hObject, eventdata, handles, varargin)
% This function has no output args, see OutputFcn.
% hObject handle to figure
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
% varargin command line arguments to Filter (see VARARGIN)
mainHandle=gui2();
h=waitbar(0,'程序正在启动中,请稍等....');
pause(1);
waitbar(1/3,h,'程序正在启动中,请稍等....');
pause(1);
waitbar(2/3,h,'程序正在启动中,请稍等....');
pause(1);
waitbar(1,h,'已完成');
delete(h);
pause(1);
close(mainHandle);
% Choose default command line output for Filter
handles.output = hObject;
% Update handles structure
guidata(hObject, handles);
% UIWAIT makes Filter wait for user response (see UIRESUME)
% uiwait(handles.figure1);
% --- Outputs from this function are returned to the command line.
function varargout = Filter_OutputFcn(hObject, eventdata, handles)
% varargout cell array for returning output args (see VARARGOUT);
% hObject handle to figure
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
% Get default command line output from handles structure
varargout{1} = handles.output;
function Fs_Callback(hObject, eventdata, handles)
% hObject handle to Fs (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
% Hints: get(hObject,'String') returns contents of Fs as text
% str2double(get(hObject,'String')) returns contents of Fs as a double
% --- Executes during object creation, after setting all properties.
function Fs_CreateFcn(hObject, eventdata, handles)
% hObject handle to Fs (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles empty - handles not created until after all CreateFcns called
% Hint: edit controls usually have a white background on Windows.
% See ISPC and COMPUTER.
if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor','white');
end
function Fp1_Callback(hObject, eventdata, handles)
%检查输入的通带边缘频率是否【0,1】
Fs_value=str2double(get(handles.Fs,'String'));
Fp1_value=str2double(get(handles.Fp1,'String'));
wp1=2*Fp1_value/Fs_value;
if(wp1>=1)
errordlg('wp1=2*Fp1/Fs, 归一化频率不在【0,1】范围内,请输入正确的参数','错误信息')
end
% hObject handle to Fp1 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
% Hints: get(hObject,'String') returns contents of Fp1 as text
% str2double(get(hObject,'String')) returns contents of Fp1 as a double
% --- Executes during object creation, after setting all properties.
function Fp1_CreateFcn(hObject, eventdata, handles)
% hObject handle to Fp1 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles empty - handles not created until after all CreateFcns called
% Hint: edit controls usually have a white background on Windows.
% See ISPC and COMPUTER.
if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor','white');
end
function Fp2_Callback(hObject, eventdata, handles)
%检查输入的通带边缘频率是否【0,1】
Fs_value=str2double(get(handles.Fs,'String'));
Fp2_value=str2double(get(handles.Fp2,'String'));
wp2=2*Fp2_value/Fs_value;
if(wp2>=1)
errordlg('wp2=2*Fp2/Fs, 归一化频率不在【0,1】范围内,请输入正确的参数','错误信息')
end
% hObject handle to Fp2 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
% Hints: get(hObject,'String') returns contents of Fp2 as text
% str2double(get(hObject,'String')) returns contents of Fp2 as a double
% --- Executes during object creation, after setting all properties.
function Fp2_CreateFcn(hObject, eventdata, handles)
% hObject handle to Fp2 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles empty - handles not created until after all CreateFcns called
% Hint: edit controls usually have a white background on Windows.
% See ISPC and COMPUTER.
if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor','white');
end
function Fs1_Callback(hObject, eventdata, handles)
%检查输入的阻带边缘频率是否【0,1】
Fs_value=str2double(get(handles.Fs,'String'));
Fs1_value=str2double(get(handles.Fs1,'String'));
ws1=2*Fs1_value/Fs_value;
if(ws1>=1)
errordlg('ws1=2*Fs1/Fs, 归一化频率不在【0,1】范围内,请输入正确的参数','错误信息')
end
% hObject handle to Fs1 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
% Hints: get(hObject,'String') returns contents of Fs1 as text
% str2double(get(hObject,'String')) returns contents of Fs1 as a double
% --- Executes during object creation, after setting all properties.
function Fs1_CreateFcn(hObject, eventdata, handles)
% hObject handle to Fs1 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles empty - handles not created until after all CreateFcns called
% Hint: edit controls usually have a white background on Windows.
% See ISPC and COMPUTER.
if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor','white');
end
function Fs2_Callback(hObject, eventdata, handles)
%检查输入的阻带边缘频率是否【0,1】
Fs_value=str2double(get(handles.Fs,'String'));
Fs2_value=str2double(get(handles.Fs2,'String'));
ws2=2*Fs2_value/Fs_value;
if(ws2>=1)
errordlg('ws2=2*Fs2/Fs, 归一化频率不在【0,1】范围内,请输入正确的参数','错误信息')
end
% hObject handle to Fs2 (see GCBO)
% eventdata reser
海神之光
- 粉丝: 5w+
- 资源: 6476
最新资源
- 免费,局域网,IP电话, SIP, VOIP, 视频通话,可与PC互通,手机版本, apk版本
- 自动驾驶业务未来:未来交通
- Linux防火墙的概述 包过滤的防火墙工作层次 netfileter firewalld
- STM32驱动CC1101代码与pdf
- ToolPlatform
- 某平台北京二手房数据.zip
- 通讯原理 的应用级开发 嵌入式
- 识别机械手sw17可编辑全套技术开发资料100%好用.zip
- 基于STM32F103C8T6的PS2遥控小车源码及接线(已调)
- (4891456)基于单片机交通灯系统
- (8814216)LIBSVM 超级详细入门经典
- (10412002)51单片机串口通信
- 石英管清洗机 氢氟酸适用(含工程图bomsw20可编辑)全套技术开发资料100%好用.zip
- (132417216)C++版本-贪吃蛇游戏
- 丢包测试小工具,可以长时间持续监控网络状态,并保存为带时间 戳的日志,方便运维分析
- (174151234)matlab矩阵位移法实现有限元求解
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈