3 % LIN_STAT_PLOT_CONTROL, by itself, creates a new LIN_STAT_PLOT_CONTROL or raises the existing
6 % H = LIN_STAT_PLOT_CONTROL returns the handle to a new LIN_STAT_PLOT_CONTROL or the handle to
7 % the existing singleton*.
9 % LIN_STAT_PLOT_CONTROL('CALLBACK',hObject,eventData,handles,...) calls the local
10 % function named CALLBACK in LIN_STAT_PLOT_CONTROL.M with the given input arguments.
12 % LIN_STAT_PLOT_CONTROL('Property','Value',...) creates a new LIN_STAT_PLOT_CONTROL or raises the
13 % existing singleton*. Starting from the left, property value pairs are
14 % applied to the GUI before lin_stat_plot_control_OpeningFcn gets called. An
15 % unrecognized property name or invalid value makes property application
16 % stop. All inputs are passed to lin_stat_plot_control_OpeningFcn via varargin.
18 % *See GUI Options on GUIDE's Tools menu. Choose "GUI allows only one
19 % instance to run (singleton)".
21 % See also: GUIDE, GUIDATA, GUIHANDLES
23 % Edit the above text to modify the response to help lin_stat_plot_control
25 % Last Modified by GUIDE v2.5 23-Apr-2012 13:48:22
27 % Begin initialization code - DO NOT EDIT
29 gui_State =
struct(
'gui_Name', mfilename, ...
30 'gui_Singleton', gui_Singleton, ...
31 'gui_OpeningFcn', @lin_stat_plot_control_OpeningFcn, ...
32 'gui_OutputFcn', @lin_stat_plot_control_OutputFcn, ...
33 'gui_LayoutFcn', [] , ...
35 if nargin && ischar(varargin{1})
36 gui_State.gui_Callback = str2func(varargin{1});
40 [varargout{1:nargout}] = gui_mainfcn(gui_State, varargin{:});
42 gui_mainfcn(gui_State, varargin{:});
44 % End initialization code - DO NOT EDIT
48 function lin_stat_plot_control_OpeningFcn(hObject, eventdata, handles, varargin)
49 % This function has no output args, see OutputFcn.
50 % hObject handle to figure
51 % eventdata reserved - to be defined in a future version of MATLAB
52 % handles structure with handles and user data (see GUIDATA)
56 handles.output = hObject;
58 % Update handles structure
59 guidata(hObject, handles);
62 % uiwait(handles.figure1);
65 % --- Outputs from this function are returned to the command line.
66 function varargout = lin_stat_plot_control_OutputFcn(hObject, eventdata, handles)
67 % varargout cell array for returning output args (see VARARGOUT);
68 % hObject handle to figure
69 % eventdata reserved - to be defined in a future version of MATLAB
70 % handles structure with handles and user data (see GUIDATA)
72 % Get default command line output from handles structure
73 varargout{1} = handles.output;
76 % --- Executes on button press in reloadButton.
77 function reloadButton_Callback(hObject, eventdata, handles)
78 % hObject handle to reloadButton (see GCBO)
79 % eventdata reserved - to be defined in a future version of MATLAB
80 % handles structure with handles and user data (see GUIDATA)
81 ud = get(gcbf, 'UserData');
83 angle =
get(handles.angleSlider,
'Value');
84 plot_params.angle = angle;
85 plot_params.gcf = gcbf;
86 plot_params.reload_required =
true;
89 % --- Executes on slider movement.
90 function angleSlider_Callback(hObject, eventdata, handles)
91 % hObject handle to angleSlider (see GCBO)
92 % eventdata reserved - to be defined in a future version of MATLAB
93 % handles structure with handles and user data (see GUIDATA)
95 ud = get(gcbf, 'UserData');
96 set(hObject,
'Min', 0);
97 set(hObject,
'Max', 2*pi);
98 set(hObject,
'SliderStep', [1 10]*pi/100);
99 angle =
get(hObject,
'Value');
100 set(handles.angle,
'String', ['angle = ', num2str(angle)]);
101 plot_params.angle = angle;
102 plot_params.gcf = gcbf;
104 % Hints:
get(hObject,
'Value') returns position of slider
105 %
get(hObject,
'Min') and
get(hObject,
'Max') to determine range of slider
108 % --- Executes during
object creation, after setting all properties.
109 function angleSlider_CreateFcn(hObject, eventdata, handles)
110 % hObject handle to angleSlider (see GCBO)
111 % eventdata reserved - to be defined in a future version of MATLAB
112 % handles empty - handles not created until after all CreateFcns called
114 % Hint: slider controls usually have a light gray background.
115 if isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
116 set(hObject,'BackgroundColor',[.9 .9 .9]);
120 % --- Executes on button press in exitButton.
121 function exitButton_Callback(hObject, eventdata, handles)
122 % hObject handle to exitButton (see GCBO)
123 % eventdata reserved - to be defined in a future version of MATLAB
124 % handles structure with handles and user data (see GUIDATA)
127 % --- Executes during
object creation, after setting all properties.
128 function figure1_CreateFcn(hObject, eventdata, handles)
129 % hObject handle to figure1 (see GCBO)
130 % eventdata reserved - to be defined in a future version of MATLAB
131 % handles empty - handles not created until after all CreateFcns called