function varargout = two_axes(varargin)
%TWO_AXES M-file for two_axes.fig
% TWO_AXES, by itself, creates a new TWO_AXES or raises the existing
% singleton*.
%
% H = TWO_AXES returns the handle to a new TWO_AXES or the handle to
% the existing singleton*.
%
% TWO_AXES('Property','Value',...) creates a new TWO_AXES using the
% given property value pairs. Unrecognized properties are passed via
% varargin to two_axes_OpeningFcn. This calling syntax produces a
% warning when there is an existing singleton*.
%
% TWO_AXES('CALLBACK') and TWO_AXES('CALLBACK',hObject,...) call the
% local function named CALLBACK in TWO_AXES.M with the given input
% arguments.
%
% *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 two_axes
% Last Modified by GUIDE v2.5 30-Aug-2013 13:24:13
% Begin initialization code - DO NOT EDIT
gui_Singleton = 1;
gui_State = struct('gui_Name', mfilename, ...
'gui_Singleton', gui_Singleton, ...
'gui_OpeningFcn', @two_axes_OpeningFcn, ...
'gui_OutputFcn', @two_axes_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 two_axes is made visible.
function two_axes_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 unrecognized PropertyName/PropertyValue pairs from the
% command line (see VARARGIN)
% Choose default command line output for two_axes
handles.output = hObject;
% Update handles structure
guidata(hObject, handles);
% UIWAIT makes two_axes wait for user response (see UIRESUME)
% uiwait(handles.figure1);
% --- Outputs from this function are returned to the command line.
function varargout = two_axes_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 f1_input_Callback(hObject, eventdata, handles)
% hObject handle to f1_input (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 f1_input as text
% str2double(get(hObject,'String')) returns contents of f1_input as a double
f1 = str2double(get(hObject,'String'));
if isnan(f1) || ~isreal(f1)
% isdouble returns NaN for non-numbers and f1_input cannot be complex
% Disable the Plot button and change its string to say why
set(handles.plot_button,'String','Cannot plot f1')
set(handles.plot_button,'Enable','off')
% Give the edit text box focus so user can correct the error
uicontrol(hObject)
else
% Enable the Plot button with its original name
set(handles.plot_button,'String','Plot')
set(handles.plot_button,'Enable','on')
end
% --- Executes during object creation, after setting all properties.
function f1_input_CreateFcn(hObject, eventdata, handles)
% hObject handle to f1_input (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 f2_input_Callback(hObject, eventdata, handles)
% hObject handle to f2_input (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 f2_input as text
% str2double(get(hObject,'String')) returns contents of f2_input as a double
f2 = str2double(get(hObject,'String'));
if isnan(f2) ... % isdouble returns NaN for non-numbers
|| ~isreal(f2) % f1 should not be complex
% Disable the Plot button and change its string to say why
set(handles.plot_button,'String','Cannot plot f2')
set(handles.plot_button,'Enable','off')
% Give the edit text box focus so user can correct the error
uicontrol(hObject)
else
% Enable the Plot button with its original name
set(handles.plot_button,'String','Plot')
set(handles.plot_button,'Enable','on')
end
% --- Executes during object creation, after setting all properties.
function f2_input_CreateFcn(hObject, eventdata, handles)
% hObject handle to f2_input (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 t_input_Callback(hObject, eventdata, handles)
% hObject handle to t_input (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 t_input as text
% str2double(get(hObject,'String')) returns contents of t_input as a double
set(handles.plot_button,'Enable','off')
try
t = eval(get(handles.t_input,'String'));
if ~isnumeric(t)
% t_input is not a number
set(handles.plot_button,'String','t is not numeric')
elseif length(t) < 2
% t_input is not a vector
set(handles.plot_button,'String','t must be vector')
elseif length(t) > 1000
% t_input is too long a vector to plot clearly
set(handles.plot_button,'String','t is too long')
elseif min(diff(t)) < 0
% t_input is not monotonically increasing
set(handles.plot_button,'String','t must increase')
else
% All OK; Enable the Plot button with its original name
set(handles.plot_button,'String','Plot')
set(handles.plot_button,'Enable','on')
return
end
% Found an input error other than a bad expression
% Give the edit text box focus so user can correct the error
uicontrol(hObject)
catch EM
% Cannot evaluate expression user typed
set(handles.plot_button,'String','Cannot plot t')
% Give the edit text box focus so user can correct the error
uicontrol(hObject)
end
% --- Executes during object creation, after setting all properties.
function t_input_CreateFcn(hObject, eventdata, handles)
% hObject handle to t_input (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 button press in plot_button.
function plot_button_Callback(hObject, eventdata, handles)
% hObject handle to plot_button (see GCBO)
% eventdata reserved - to be defined in a
没有合适的资源?快使用搜索试试~ 我知道了~
MATLAB 小波分析超级学习手册-程序代码
共119个文件
m:113个
wav:4个
fig:2个
需积分: 43 34 下载量 172 浏览量
2015-11-18
12:18:58
上传
评论 1
收藏 504KB ZIP 举报
温馨提示
MATLAB 小波分析超级学习手册-程序代码
资源推荐
资源详情
资源评论
收起资源包目录
MATLAB 小波分析超级学习手册-程序代码 (119个子文件)
two_axes.fig 7KB
temp_conversion.fig 2KB
two_axes.m 8KB
temp_conversion.m 5KB
eg8_7.m 4KB
eg5_7.m 4KB
eg7_1.m 3KB
eg10_8.m 2KB
eg7_5.m 2KB
eg9_9.m 2KB
eg10_7.m 2KB
eg11_3.m 2KB
eg6_2.m 2KB
eg5_6.m 2KB
eg16_6.m 2KB
eg9_8.m 2KB
eg7_6.m 2KB
eg13_7.m 2KB
eg14_7.m 1KB
eg16_4.m 1KB
eg12_12.m 1KB
eg7_3.m 1KB
eg12_13.m 1KB
eg14_8.m 1KB
eg7_7.m 1KB
eg5_5.m 1KB
mallatdec2.m 1KB
eg7_4.m 1011B
mallatrec2.m 997B
eg10_2.m 966B
emd.m 958B
eg13_5.m 926B
eg15_8.m 902B
eg7_2.m 888B
eg15_7.m 884B
eg9_2.m 883B
eg9_6.m 881B
eg16_7.m 848B
eg12_11.m 844B
eg11_1.m 840B
eg7_8.m 818B
eg10_5.m 799B
eg9_3.m 798B
eg16_2.m 785B
eg11_2.m 777B
eg10_6.m 776B
eg16_1.m 773B
eg14_5.m 767B
eg13_3.m 747B
plot_hht.m 739B
eg9_1.m 727B
eg13_2.m 725B
eg13_4.m 701B
eg14_4.m 668B
eg13_1.m 668B
eg9_7.m 655B
eg15_11.m 639B
eg14_3.m 603B
eg5_1.m 600B
eg13_6.m 598B
eg16_5.m 590B
eg5_3.m 572B
eg16_3.m 566B
eg12_8.m 550B
eg15_6.m 532B
eg14_6.m 525B
eg15_9.m 519B
eg5_2.m 515B
eg12_2.m 510B
eg12_3.m 451B
eg15_10.m 444B
eg9_5.m 439B
eg6_1.m 434B
eg12_9.m 431B
eg12_1.m 424B
eg15_2.m 417B
eg15_3.m 417B
eg12_4.m 407B
eg12_5.m 397B
eg8_2.m 391B
eg4_3.m 371B
eg8_5.m 369B
eg15_1.m 357B
eg15_5.m 351B
eg3_5.m 333B
funbreakupindb4.m 312B
eg3_10.m 310B
eg12_10.m 291B
eg3_2.m 277B
funreconstructindb4.m 272B
eg12_7.m 271B
eg10_3.m 268B
eg9_4.m 266B
eg3_9.m 256B
eg10_1.m 253B
eg15_4.m 246B
eg3_1.m 234B
eg3_8.m 227B
eg3_3.m 221B
eg3_4.m 217B
共 119 条
- 1
- 2
资源评论
xueyufly
- 粉丝: 1
- 资源: 9
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功