filter.asv

来自「数字滤波仿真程序」· ASV 代码 · 共 202 行

ASV
202
字号
function varargout = FILTER(varargin)


% 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)
%Importamos imagen *.jpg,junto con su mapa de colores
[x,map]=imread('circuit.jpg','jpg');
%Representamos imagen en figura, con su mapa de colores
image(x),colormap(map),axis off,hold on
% 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;


% --- Executes on button press in Butterworth_high.
function Butterworth_high_Callback(hObject, eventdata, handles)
% hObject    handle to Butterworth_high (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)
Butterworth
close FILTER

% --- Executes on button press in Chebyshev_I_high.
function Chebyshev_I_high_Callback(hObject, eventdata, handles)
% hObject    handle to Chebyshev_I_high (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)
CHEVYSHEV_I_high
close FILTER

% --- Executes on button press in Chebyshev_II_high.
function Chebyshev_II_high_Callback(hObject, eventdata, handles)
% hObject    handle to Chebyshev_II_high (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)
CHEVYSHEV_II_high
close FILTER


% --- Executes on button press in Elliptic_high.
function Elliptic_high_Callback(hObject, eventdata, handles)
% hObject    handle to Elliptic_high (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)
ELLIPTIC_high
close FILTER



% --- Executes on button press in Butterworth_low.
function Butterworth_low_Callback(hObject, eventdata, handles)
% hObject    handle to Butterworth_low (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)
Butterworth_low
close FILTER

% --- Executes on button press in Chebyshev_I_low.
function Chebyshev_I_low_Callback(hObject, eventdata, handles)
% hObject    handle to Chebyshev_I_low (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)
CHEVYSHEV_I_low
close FILTER

% --- Executes on button press in pushbutton7.
function pushbutton7_Callback(hObject, eventdata, handles)
% hObject    handle to pushbutton7 (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)


% --- Executes on button press in Elliptic_low.
function Elliptic_low_Callback(hObject, eventdata, handles)
% hObject    handle to Elliptic_low (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)
ELLIPTIC_low
close FILTER

% --- Executes on button press in Chebyshev_II_low.
function Chebyshev_II_low_Callback(hObject, eventdata, handles)
% hObject    handle to Chebyshev_II_low (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)
CHEVYSHEV_II_low
close FILTER




% --- Executes on button press in Butterworth_SB.
function Butterworth_SB_Callback(hObject, eventdata, handles)
% hObject    handle to Butterworth_SB (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)
Butterworth_stopband
close FILTER
% --- Executes on button press in Butterworth_BP.
function Butterworth_BP_Callback(hObject, eventdata, handles)
% hObject    handle to Butterworth_BP (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)
Butterworth_bandpass
close FILTER

% --- Executes on button press in Chebyshev_I_SB.
function Chebyshev_I_SB_Callback(hObject, eventdata, handles)
% hObject    handle to Chebyshev_I_SB (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)
CHEVYSHEV_I_stopband
close FILTER

% --- Executes on button press in Chebyshev_I_BP.
function Chebyshev_I_BP_Callback(hObject, eventdata, handles)
% hObject    handle to Chebyshev_I_BP (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)
CHEVYSHEV_I_bandpass
close FILTER

% --- Executes on button press in Chebyshev_II_SB.
function Chebyshev_II_SB_Callback(hObject, eventdata, handles)
% hObject    handle to Chebyshev_II_SB (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)
CHEVYSHEV_II_stopband
close FILTER

% --- Executes on button press in pushbutton14.
function pushbutton14_Callback(hObject, eventdata, handles)
% hObject    handle to pushbutton14 (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)


% --- Executes on button press in Elliptic_SB.
function Elliptic_SB_Callback(hObject, eventdata, handles)
% hObject    handle to Elliptic_SB (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)
ELLIPTIC_stopband
close FILTER

% --- Executes on button press in Elliptic_BP.
function Elliptic_BP_Callback(hObject, eventdata, handles)
% hObject    handle to Elliptic_BP (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)
ELLIPTIC_bandpass
close FILTER

% --- Executes on button press in Chebyshev_II_BP.
function Chebyshev_II_BP_Callback(hObject, eventdata, handles)
% hObject    handle to Chebyshev_II_BP (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)
CHEVYSHEV_II_banbpass
close FILTER

⌨️ 快捷键说明

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