diff --git a/matlab/examples/VisualISAM_gui.m b/matlab/examples/VisualISAM_gui.m index ab48a4cc1..015c7ef6d 100644 --- a/matlab/examples/VisualISAM_gui.m +++ b/matlab/examples/VisualISAM_gui.m @@ -6,7 +6,7 @@ function varargout = VisualISAM_gui(varargin) % H = VISUALISAM_GUI returns the handle to a new VISUALISAM_GUI or the handle to % the existing singleton*. % -% VISUALISAM_GUI('CALLBACK',hObject,eventData,handles,...) calls the local +% VISUALISAM_GUI('CALLBACK',hObject,~,handles,...) calls the local % function named CALLBACK in VISUALISAM_GUI.M with the given input arguments. % % VISUALISAM_GUI('Property','Value',...) creates a new VISUALISAM_GUI or raises the @@ -45,11 +45,8 @@ end % --- Executes just before VisualISAM_gui is made visible. -function VisualISAM_gui_OpeningFcn(hObject, eventdata, handles, varargin) +function VisualISAM_gui_OpeningFcn(hObject, ~, 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 VisualISAM_gui (see VARARGIN) % Choose default command line output for VisualISAM_gui @@ -109,20 +106,14 @@ function initOptions(handles) SAVE_GRAPHS = get(handles.saveGraphsCB,'Value') % --- Outputs from this function are returned to the command line. -function varargout = VisualISAM_gui_OutputFcn(hObject, eventdata, handles) +function varargout = VisualISAM_gui_OutputFcn(hObject, ~, 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 intializeButton. -function intializeButton_Callback(hObject, eventdata, handles) -% hObject handle to intializeButton (see GCBO) -% eventdata reserved - to be defined in a future version of MATLAB -% handles structure with handles and user data (see GUIDATA) +function intializeButton_Callback(hObject, ~, handles) + VisualISAMGlobalVars initOptions(handles) VisualISAMGenerateData @@ -132,10 +123,8 @@ function intializeButton_Callback(hObject, eventdata, handles) % --- Executes on button press in stepButton. -function stepButton_Callback(hObject, eventdata, handles) -% hObject handle to stepButton (see GCBO) -% eventdata reserved - to be defined in a future version of MATLAB -% handles structure with handles and user data (see GUIDATA) +function stepButton_Callback(hObject, ~, handles) + VisualISAMGlobalVars if (frame_i