Skip to content

Commit

Permalink
fix compatibility with MATLAB R2015
Browse files Browse the repository at this point in the history
  • Loading branch information
alicemantoan committed Nov 13, 2015
1 parent c6705d7 commit bb1f28f
Show file tree
Hide file tree
Showing 7 changed files with 49 additions and 6 deletions.
Binary file modified src/BOPSgui.fig
Binary file not shown.
43 changes: 43 additions & 0 deletions src/BOPSgui.m
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,49 @@ function BOPSgui_OpeningFcn(hObject, eventdata, handles, varargin)
% Choose setDefault command line output for BOPSgui
handles.output = hObject;

set(handles.runIK,'Value',0);
set(handles.PlotResultsIK,'Value',0);
set(handles.PlotResultsIK, 'Enable', 'off')

set(handles.runMA,'Value',0);
set(handles.plotStorageMA,'Value',0);
set(handles.plotStorageMA, 'Enable', 'off')
set(handles.selectTrialsMA,'Value',0);
set(handles.selectXaxisMA,'Value',0);

set(handles.runID,'Value',0);
set(handles.plotResultsID,'Value',0);
set(handles.plotResultsID, 'Enable', 'off')
set(handles.selectTrialsID,'Value',0);
set(handles.selectCoordinatesToPlotID,'Value',0);

set(handles.runSO,'Value',0);
set(handles.plotStorageSO,'Value',0);
set(handles.plotStorageSO, 'Enable', 'off')
set(handles.selectTrialsSO,'Value',0);
set(handles.selectXaxisSO,'Value',0);

global selections

selections.runIK=0;
selections.plotIK=0;

selections.runMA=0;
selections.plotMA=0;
selections.selectTrialsMA=0;
selections.selectXaxisMA=0;

selections.runID=0;
selections.plotID=0;
selections.selectTrialsID=0;
selections.selectCoordinatesToPlotID=0;

selections.runSO=0;
selections.plotSO=0;

selections.selectTrialsSO=0;
selections.selectXaxisSO=0;

% Update handles structure
guidata(hObject, handles);

Expand Down
2 changes: 1 addition & 1 deletion src/plotStorage.m
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@


%% input dir
resultsDir = uigetdir(' ', 'Select your results folder');
resultsDir = uigetdir('', 'Select your results folder');

%Get trials in the input folder
trialsList = trialsListGeneration(resultsDir);
Expand Down
2 changes: 1 addition & 1 deletion src/private/IDinput.m
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@

if nargout == 5 %Get folder with Inverse Kinematics results to use for ID

IKresultsDir = uigetdir(' ', 'Select folder with INVERSE KINEMATICS results to use');
IKresultsDir = uigetdir('', 'Select folder with INVERSE KINEMATICS results to use');
end
end

2 changes: 1 addition & 1 deletion src/private/MAinput.m
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@

%Get folder with Inverse Kinematics results to use for MA
if nargout == 5
IKresultsDir = uigetdir(' ', 'Select folder with INVERSE KINEMATICS results to use');
IKresultsDir = uigetdir('', 'Select folder with INVERSE KINEMATICS results to use');
end

end
Expand Down
4 changes: 2 additions & 2 deletions src/private/SOinput.m
Original file line number Diff line number Diff line change
Expand Up @@ -76,11 +76,11 @@
if nargout > 5

%Get folder with Inverse Kinematics results
IKresultsDir = uigetdir(' ', 'Select folder with INVERSE KINEMATICS results to use');
IKresultsDir = uigetdir('', 'Select folder with INVERSE KINEMATICS results to use');

if nargout > 6
%Get folder with Inverse Dynamics results
IDresultsDir = uigetdir(' ', 'Select folder with INVERSE DYNAMICS results to use');
IDresultsDir = uigetdir('', 'Select folder with INVERSE DYNAMICS results to use');

end
end
Expand Down
2 changes: 1 addition & 1 deletion src/processingConfiguration.m
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@


%% input dir
inputDir = uigetdir(' ', 'Select your trials folder');
inputDir = uigetdir('', 'Select your trials folder');

ind=strfind(inputDir, [filesep 'dynamicElaborations']);

Expand Down

0 comments on commit bb1f28f

Please sign in to comment.