⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 gmmenu1.m

📁 数字信号处理:1.卷积 2.抽样 3.滤波器
💻 M
字号:
function varargout = GMMENU1(varargin)
% GMMENU1 M-file for GMMENU1.fig
%      GMMENU1, by itself, creates a new GMMENU1 or raises the existing
%      singleton*.
%
%      H = GMMENU1 returns the handle to a new GMMENU1 or the handle to
%      the existing singleton*.
%
%      GMMENU1('CALLBACK',hObject,eventData,handles,...) calls the local
%      function named CALLBACK in GMMENU1.M with the given input arguments.
%
%      GMMENU1('Property','Value',...) creates a new GMMENU1 or raises the
%      existing singleton*.  Starting from the left, property value pairs are
%      applied to the GUI before GMMENU1_OpeningFunction gets called.  An
%      unrecognized property name or invalid value makes property application
%      stop.  All inputs are passed to GMMENU1_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 GMMENU1

% Last Modified by GUIDE v2.5 18-Jan-2008 12:26:11
% Begin initialization code - DO NOT EDIT
gui_Singleton = 1;
gui_State = struct('gui_Name',       mfilename, ...
                   'gui_Singleton',  gui_Singleton, ...
                   'gui_OpeningFcn', @GMMENU1_OpeningFcn, ...
                   'gui_OutputFcn',  @GMMENU1_OutputFcn, ...
                   'gui_LayoutFcn',  [] , ...
                   'gui_Callback',   []);
if nargin & isstr(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 GMMENU1 is made visible.
function GMMENU1_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 GMMENU1 (see VARARGIN)

% Choose default command line output for GMMENU1
handles.output = hObject;

% Update handles structure
guidata(hObject, handles);

% UIWAIT makes GMMENU1 wait for user response (see UIRESUME)
% uiwait(handles.figure1);


% --- Outputs from this function are returned to the command line.
function varargout = GMMENU1_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;
% --- Executes on button press in pushbutton1.function pushbutton1_Callback(hObject, eventdata, handles)% hObject    handle to pushbutton1 (see GCBO)% eventdata  reserved - to be defined in a future version of MATLAB% handles    structure with handles and user data (see GUIDATA)GMGUI;% --- Executes on button press in pushbutton2.function pushbutton2_Callback(hObject, eventdata, handles)% hObject    handle to pushbutton2 (see GCBO)% eventdata  reserved - to be defined in a future version of MATLAB% handles    structure with handles and user data (see GUIDATA)GMGUIFs;% --- Executes on button press in radiobutton2.function radiobutton2_Callback(hObject, eventdata, handles)% hObject    handle to radiobutton2 (see GCBO)% eventdata  reserved - to be defined in a future version of MATLAB% handles    structure with handles and user data (see GUIDATA)% Hint: get(hObject,'Value') returns toggle state of radiobutton2if get(hObject,'Value')==1
    set(handles.radiobutton3,'enable','off');
    set(handles.radiobutton4,'enable','off');
    set(handles.radiobutton5,'enable','off');
else
    set(handles.radiobutton3,'enable','on');
    set(handles.radiobutton4,'enable','on');
    set(handles.radiobutton5,'enable','on');
end% --- Executes on button press in radiobutton3.function radiobutton3_Callback(hObject, eventdata, handles)% hObject    handle to radiobutton3 (see GCBO)% eventdata  reserved - to be defined in a future version of MATLAB% handles    structure with handles and user data (see GUIDATA)% Hint: get(hObject,'Value') returns toggle state of radiobutton3if get(hObject,'Value')==1
    set(handles.radiobutton2,'enable','off');
    set(handles.radiobutton4,'enable','off');
    set(handles.radiobutton5,'enable','off');
else
    set(handles.radiobutton2,'enable','on');
    set(handles.radiobutton4,'enable','on');
    set(handles.radiobutton5,'enable','on');
end% --- Executes on button press in radiobutton4.function radiobutton4_Callback(hObject, eventdata, handles)% hObject    handle to radiobutton4 (see GCBO)% eventdata  reserved - to be defined in a future version of MATLAB% handles    structure with handles and user data (see GUIDATA)% Hint: get(hObject,'Value') returns toggle state of radiobutton4if get(hObject,'Value')==1
    set(handles.radiobutton2,'enable','off');
    set(handles.radiobutton3,'enable','off');
    set(handles.radiobutton5,'enable','off');
else
    set(handles.radiobutton2,'enable','on');
    set(handles.radiobutton3,'enable','on');
    set(handles.radiobutton5,'enable','on');
end% --- Executes on button press in pushbutton4.function pushbutton4_Callback(hObject, eventdata, handles)% hObject    handle to pushbutton4 (see GCBO)% eventdata  reserved - to be defined in a future version of MATLAB% handles    structure with handles and user data (see GUIDATA)if get(handles.radiobutton2,'Value')==1
    GMGUIIIR1;
else
    if get(handles.radiobutton3,'Value')==1
        GMGUIIIR2;  
    else
        if get(handles.radiobutton4,'Value')==1
            GMGUIIIR3;  
        else
            GMGUIFIR;
        end
    end
end% --- Executes on button press in radiobutton5.function radiobutton5_Callback(hObject, eventdata, handles)% hObject    handle to radiobutton5 (see GCBO)% eventdata  reserved - to be defined in a future version of MATLAB% handles    structure with handles and user data (see GUIDATA)% Hint: get(hObject,'Value') returns toggle state of radiobutton5if get(hObject,'Value')==1
    set(handles.radiobutton2,'enable','off');    set(handles.radiobutton3,'enable','off');    set(handles.radiobutton4,'enable','off');
else
    set(handles.radiobutton2,'enable','on');
    set(handles.radiobutton3,'enable','on');
    set(handles.radiobutton4,'enable','on');
end
    
    

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -