function varargout = slider_test3(varargin)
gui_Singleton = 1;
gui_State = struct('gui_Name', mfilename, ...
'gui_Singleton', gui_Singleton, ...
'gui_OpeningFcn', @slider_test3_OpeningFcn, ...
'gui_OutputFcn', @slider_test3_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
function slider_test3_OpeningFcn(hObject, eventdata, handles, varargin)
set(handles.slider1,'Value',2);
set(handles.slider1,'Max',22);
set(handles.slider1,'Min',2);
handles.output = hObject;
guidata(hObject, handles);
uiwait(handles.figure1);
function varargout = slider_test3_OutputFcn(hObject, eventdata, handles)
varargout{1} = handles.text3;
function slider1_Callback(hObject, eventdata, handles)
set(handles.text3,'String',(get(hObject,'Value')));
guidata(hObject,handles);
function slider1_CreateFcn(hObject, eventdata, handles)
if isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor',[.9 .9 .9]);
end
function figure1_CloseRequestFcn(hObject, eventdata, handles)
delete(hObject);
if true
end