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

📄 quantexpo.m

📁 非常好的数字处理教程
💻 M
字号:
function varargout = quantexpo(varargin)% QUANTEXPO M-file for quantexpo.fig%      QUANTEXPO, by itself, creates a new QUANTEXPO or raises the existing%      singleton*.%%      H = QUANTEXPO returns the handle to a new QUANTEXPO or the handle to%      the existing singleton*.%%      QUANTEXPO('CALLBACK',hObject,eventData,handles,...) calls the local%      function named CALLBACK in QUANTEXPO.M with the given input arguments.%%      QUANTEXPO('Property','Value',...) creates a new QUANTEXPO or raises the%      existing singleton*.  Starting from the left, property value pairs are%      applied to the GUI before quantexpo_OpeningFunction gets called.  An%      unrecognized property name or invalid value makes property application%      stop.  All inputs are passed to quantexpo_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 quantexpo% Last Modified by GUIDE v2.5 24-Nov-2005 13:16:52% Begin initialization code - DO NOT EDITgui_Singleton = 1;gui_State = struct('gui_Name',       mfilename, ...                   'gui_Singleton',  gui_Singleton, ...                   'gui_OpeningFcn', @quantexpo_OpeningFcn, ...                   'gui_OutputFcn',  @quantexpo_OutputFcn, ...                   'gui_LayoutFcn',  [] , ...                   'gui_Callback',   []);if nargin & isstr(varargin{1})    gui_State.gui_Callback = str2func(varargin{1});endif 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 quantexpo is made visible.function quantexpo_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 quantexpo (see VARARGIN)% Choose default command line output for quantexpo	handles.output = hObject;	guidata(hObject, handles);	set(gcf,'UserData',handles);	quantexpofn;	if (nargin > 3)		datastruct = varargin{1};		quantexpofn('readinput',datastruct);	end% --- Outputs from this function are returned to the command line.function varargout = quantexpo_OutputFcn(hObject, eventdata, handles)	varargout{1} = handles.output;% --------------------------------------------------------------------function FileMenu_Callback(hObject, eventdata, handles)% --------------------------------------------------------------------function PrintMenuItem_Callback(hObject, eventdata, handles)	quantexpofn 'print';% --------------------------------------------------------------------function CloseMenuItem_Callback(hObject, eventdata, handles)	quantexpofn 'close';% --------------------------------------------------------------------function apply_Callback(hObject, eventdata, handles)% hObject    handle to apply (see GCBO)% eventdata  reserved - to be defined in a future version of MATLAB% handles    structure with handles and user data (see GUIDATA)		quantexpofn 'apply';% --------------------------------------------------------------------function help_Callback(hObject, eventdata, handles)% hObject    handle to help (see GCBO)% eventdata  reserved - to be defined in a future version of MATLAB% handles    structure with handles and user data (see GUIDATA)    quantexpofn 'help';% --- Executes when quantexpo_fig window is resized.function quantexpo_fig_ResizeFcn(hObject, eventdata, handles)% hObject    handle to quantexpo_fig (see GCBO)% eventdata  reserved - to be defined in a future version of MATLAB% handles    structure with handles and user data (see GUIDATA)    quantexpofn 'resize';% --- Executes on selection change in pdfmenu.function pdfmenu_Callback(hObject, eventdata, handles)% hObject    handle to pdfmenu (see GCBO)% eventdata  reserved - to be defined in a future version of MATLAB% handles    structure with handles and user data (see GUIDATA)% Hints: contents = get(hObject,'String') returns pdfmenu contents as cell array%        contents{get(hObject,'Value')} returns selected item from pdfmenu		quantexpofn 'updateall';% --- Executes during object creation, after setting all properties.function pdfmenu_CreateFcn(hObject, eventdata, handles)% hObject    handle to pdfmenu (see GCBO)% eventdata  reserved - to be defined in a future version of MATLAB% handles    empty - handles not created until after all CreateFcns called% Hint: popupmenu 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');endfunction pdfvar_Callback(hObject, eventdata, handles)% hObject    handle to pdfvar (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 pdfvar as text%        str2double(get(hObject,'String')) returns contents of pdfvar as a double		test = abs(str2num(get(hObject,'String')));		set(hObject,'String',num2str(test));			quantexpofn	'updateall';% --- Executes during object creation, after setting all properties.function pdfvar_CreateFcn(hObject, eventdata, handles)% hObject    handle to pdfvar (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');endfunction nlevels_Callback(hObject, eventdata, handles)% hObject    handle to nlevels (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 nlevels as text%        str2double(get(hObject,'String')) returns contents of nlevels as a double				test = floor(abs(str2num(get(hObject,'String'))));		if test > 0			set(hObject,'String',num2str(test));		else			set(hObject,'String',num2str(1));		end		quantexpofn	'updateall';% --- Executes during object creation, after setting all properties.function nlevels_CreateFcn(hObject, eventdata, handles)% hObject    handle to nlevels (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% --- Executes on selection change in quantmenu.function quantmenu_Callback(hObject, eventdata, handles)% hObject    handle to quantmenu (see GCBO)% eventdata  reserved - to be defined in a future version of MATLAB% handles    structure with handles and user data (see GUIDATA)% Hints: contents = get(hObject,'String') returns quantmenu contents as cell array%        contents{get(hObject,'Value')} returns selected item from quantmenu		quantexpofn	'updateall';% --- Executes during object creation, after setting all properties.function quantmenu_CreateFcn(hObject, eventdata, handles)% hObject    handle to quantmenu (see GCBO)% eventdata  reserved - to be defined in a future version of MATLAB% handles    empty - handles not created until after all CreateFcns called% Hint: popupmenu 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% --- Executes on button press in printlevels.function printlevels_Callback(hObject, eventdata, handles)% hObject    handle to printlevels (see GCBO)% eventdata  reserved - to be defined in a future version of MATLAB% handles    structure with handles and user data (see GUIDATA)		quantexpofn 'printlevels';% --- Executes on button press in showR.function showR_Callback(hObject, eventdata, handles)% hObject    handle to showR (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 showR		quantexpofn 'show';% --- Executes on button press in showL.function showL_Callback(hObject, eventdata, handles)% hObject    handle to showL (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 showL		quantexpofn 'show';% --- Executes on button press in play_orig.function play_orig_Callback(hObject, eventdata, handles)% hObject    handle to play_orig (see GCBO)% eventdata  reserved - to be defined in a future version of MATLAB% handles    structure with handles and user data (see GUIDATA)		quantexpofn 'play_orig';% --- Executes on button press in play_quant.function play_quant_Callback(hObject, eventdata, handles)% hObject    handle to play_quant (see GCBO)% eventdata  reserved - to be defined in a future version of MATLAB% handles    structure with handles and user data (see GUIDATA)		quantexpofn 'play_quant';% --- Executes on selection change in distmenu.function distmenu_Callback(hObject, eventdata, handles)% hObject    handle to distmenu (see GCBO)% eventdata  reserved - to be defined in a future version of MATLAB% handles    structure with handles and user data (see GUIDATA)% Hints: contents = get(hObject,'String') returns distmenu contents as cell array%        contents{get(hObject,'Value')} returns selected item from distmenu		quantexpofn 'updateall';% --- Executes during object creation, after setting all properties.function distmenu_CreateFcn(hObject, eventdata, handles)% hObject    handle to distmenu (see GCBO)% eventdata  reserved - to be defined in a future version of MATLAB% handles    empty - handles not created until after all CreateFcns called% Hint: popupmenu 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

⌨️ 快捷键说明

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