function varargout = ab_band_gui(varargin)
% AB_BAND_GUI Application M-file for ab_band_gui.fig
% FIG = AB_BAND_GUI launch ab_band_gui GUI.
% AB_BAND_GUI('callback_name', ...) invoke the named callback.
% Last Modified by GUIDE v2.0 27-Oct-2001 13:02:41
if nargin == 0 % LAUNCH GUI
fig = openfig(mfilename,'reuse');
% Generate a structure of handles to pass to callbacks, and store it.
handles = guihandles(fig);
guidata(fig, handles);
if nargout > 0
varargout{1} = fig;
end
elseif ischar(varargin{1}) % INVOKE NAMED SUBFUNCTION OR CALLBACK
try
[varargout{1:nargout}] = feval(varargin{:}); % FEVAL switchyard
catch
disp(lasterr);
end
end
%| ABOUT CALLBACKS:
%| GUIDE automatically appends subfunction prototypes to this file, and
%| sets objects' callback properties to call them through the FEVAL
%| switchyard above. This comment describes that mechanism.
%|
%| Each callback subfunction declaration has the following form:
%| <SUBFUNCTION_NAME>(H, EVENTDATA, HANDLES, VARARGIN)
%|
%| The subfunction name is composed using the object's Tag and the
%| callback type separated by '_', e.g. 'slider2_Callback',
%| 'figure1_CloseRequestFcn', 'axis1_ButtondownFcn'.
%|
%| H is the callback object's handle (obtained using GCBO).
%|
%| EVENTDATA is empty, but reserved for future use.
%|
%| HANDLES is a structure containing handles of components in GUI using
%| tags as fieldnames, e.g. handles.figure1, handles.slider2. This
%| structure is created at GUI startup using GUIHANDLES and stored in
%| the figure's application data using GUIDATA. A copy of the structure
%| is passed to each callback. You can store additional information in
%| this structure at GUI startup, and you can change the structure
%| during callbacks. Call guidata(h, handles) after changing your
%| copy to replace the stored original so that subsequent callbacks see
%| the updates. Type "help guihandles" and "help guidata" for more
%| information.
%|
%| VARARGIN contains any extra arguments you have passed to the
%| callback. Specify the extra arguments by editing the callback
%| property in the inspector. By default, GUIDE sets the property to:
%| <MFILENAME>('<SUBFUNCTION_NAME>', gcbo, [], guidata(gcbo))
%| Add any extra arguments after the last argument, before the final
%| closing parenthesis.
% --------------------------------------------------------------------
function varargout = auswahl_Callback(h, eventdata, handles, varargin)
% Stub for Callback of the uicontrol handles.auswahl.
aktion = get(handles.auswahl,'Value');
speichern = 0;
M = get(handles.M,'Value');
M = floor(M);
f_M = get(handles.f_M,'Value');
B = get(handles.B,'Value');
reell = get(handles.rb1,'Value');
AAF = get(handles.rb4,'Value');
f_vector=getFvector(f_M,B);
ab_band(speichern,M,f_M,B,reell,AAF,aktion,handles,f_vector);
% --------------------------------------------------------------------
function varargout = text_Callback(h, eventdata, handles, varargin)
% Stub for Callback of the uicontrol handles.*text.
aktion = get(handles.auswahl,'Value');
speichern = 0;
M = str2num(get(handles.Mtext,'String'));
M = floor(M);
f_M = str2num(get(handles.f_Mtext,'String'));
B = str2num(get(handles.Btext,'String'));
reell = get(handles.rb1,'Value');
AAF = get(handles.rb4,'Value');
if M > 8,
M = 8;
elseif M < 2
M = 2;
end
f_vector=getFvector(f_M,B);
ab_band(speichern,M,f_M,B,reell,AAF,aktion,handles,f_vector);
% --------------------------------------------------------------------
function varargout = slider_Callback(h, eventdata, handles, varargin)
% Stub for Callback of the uicontrol (sliders)
aktion = get(handles.auswahl,'Value');
speichern = 0;
M = get(handles.M,'Value');
M = floor(M);
f_M = get(handles.f_M,'Value');
B = get(handles.B,'Value');
reell = get(handles.rb1,'Value');
AAF = get(handles.rb4,'Value');
if M > 8,
M = 8;
elseif M < 2
M = 2;
end
if f_M > 1,
f_M = 1;
elseif f_M < 0.05
f_M = 0.05;
end
f_vector=getFvector(f_M,B);
ab_band(speichern,M,f_M,B,reell,AAF,aktion,handles,f_vector);
% --------------------------------------------------------------------
function varargout = figure1_ResizeFcn(h, eventdata, handles, varargin)
% Stub for ResizeFcn of the figure handles.figure1.
% --------------------------------------------------------------------
function varargout = Kommentare_Callback(h, eventdata, handles, varargin)
% Stub for callback of uimenu handles.Kommentar
if strcmp(get(handles.Kommentare,'Checked'),'on') == 1
set(handles.Kommentare,'Checked','off');
set(handles.text,'Visible','off');
else
set(handles.Kommentare,'Checked','on');
set(handles.text,'Visible','On');
end;
% --------------------------------------------------------------------
function varargout = keypress_Callback(h, eventdata, handles, varargin)
% Stub for callback of key pressed
aktion = get(handles.auswahl,'Value');
speichern = 0;
M = get(handles.M,'Value');
M = floor(M);
f_M = get(handles.f_M,'Value');
B = get(handles.B,'Value');
reell = get(handles.rb1,'Value');
AAF = get(handles.rb4,'Value');
f_vector=getFvector(f_M,B);
if aktion < 2
set(handles.auswahl,'Value',aktion+1);
ab_band(speichern,M,f_M,B,reell,AAF,aktion+1,handles,f_vector);
end
% --------------------------------------------------------------------
function varargout = rb1_Callback(h, eventdata, handles, varargin)
% Stub for Callback of the uicontrol handles.reell and handles.bla .
aktion = get(handles.auswahl,'Value');
speichern = 0;
M = get(handles.M,'Value');
M = floor(M);
f_M = get(handles.f_M,'Value');
B = get(handles.B,'Value');
reell = 1;
AAF = get(handles.rb4,'Value');
f_vector=getFvector(f_M,B);
ab_band(speichern,M,f_M,B,reell,AAF,aktion,handles,f_vector);
% --------------------------------------------------------------------
function varargout = rb2_Callback(h, eventdata, handles, varargin)
% Stub for Callback of the uicontrol handles.reell and handles.bla .
aktion = get(handles.auswahl,'Value');
speichern = 0;
M = get(handles.M,'Value');
M = floor(M);
f_M = get(handles.f_M,'Value');
B = get(handles.B,'Value');
reell = 0;
AAF = get(handles.rb4,'Value');
f_vector=getFvector(f_M,B);
ab_band(speichern,M,f_M,B,reell,AAF,aktion,handles,f_vector);
% --------------------------------------------------------------------
function varargout = rb3_Callback(h, eventdata, handles, varargin)
% Stub for Callback of the uicontrol handles.reell and handles.bla .
aktion = get(handles.auswahl,'Value');
speichern = 0;
M = get(handles.M,'Value');
M = floor(M);
f_M = get(handles.f_M,'Value');
B = get(handles.B,'Value');
AAF = 0;
reell = get(handles.rb1,'Value');
f_vector=getFvector(f_M,B);
ab_band(speichern,M,f_M,B,reell,AAF,aktion,handles,f_vector);
% --------------------------------------------------------------------
function varargout = rb4_Callback(h, eventdata, handles, varargin)
% Stub for Callback of the uicontrol handles.reell and handles.bla .
aktion = get(handles.auswahl,'Value');
speichern = 0;
M = get(handles.M,'Value');
M = floor(M);
f_M = get(handles.f_M,'Value');
B = get(handles.B,'Value');
AAF = 1;
reell = get(handles.rb1,'Value');
f_vector=getFvector(f_M,B);
ab_band(speichern,M,f_M,B,reell,AAF,aktion,handles,f_vector);
% --------------------------------------------------------------------
function varargout = Demo_Callback(h, eventdata, handles, varargin)
% Stub for Callback of the uicontrol menue
if strcmp(get(handles.Demo,'Checked'),'on') == 0
% Demo-Modus ein: alle Felder 'disablen' und Demo durchfuehren
set(handles.Demo,'Checked','on');
set(handles.text,'Visible','Off');
set(handles.demotext,'Visible','On');
set(handles.auswahl,'Enable','Off');
set(handles.rb1,'Enable','Off');
set(handles.rb2,'Enable','Off');
set(handles.rb3,'Enable','Off');
set(handles.rb4,'Enable','Off');
set(handles.M,'Enable','Off');
set(handles.Mtext,'Enable','Off');
set(handles.f_M,'Enable','Off');
set(handles.f_Mtext,'Enable','Off');
set(handles.B,'E
ab_band_gui.zip_GUI 信号_信号处理 gui_多速率_多速率信号处理_时域 gui
版权申诉
75 浏览量
2022-07-13
21:18:29
上传
评论
收藏 3KB ZIP 举报
寒泊
- 粉丝: 75
- 资源: 1万+