Skip to content

Commit

Permalink
input update
Browse files Browse the repository at this point in the history
after making change ion the structure of files from computing single
subject summary stats this function became buggy
  • Loading branch information
CPernet committed Jul 20, 2016
1 parent 8d7410c commit f03c7a6
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions limo_plot_difference.m
Expand Up @@ -30,16 +30,17 @@
nboot = 1000;
alpha_level = 5/100;
figure_flag = 1;
if nargin < 3
if nargin < 3
% data1
[file,locpath,filter]=uigetfile('.mat','Select 1st dataset');
if filter == 0
return
end
cd(locpath); D = load(file);
cd(locpath);
D = load(file); D = D.Data;
if isstruct(D)
name = fieldnames(D);
tmp = sprintf('D.%s',cell2mat(name));
tmp = sprintf('D.%s',cell2mat(name(1)));
data1 = eval(tmp);
else
data1 = D;
Expand All @@ -53,10 +54,11 @@
end
% data2
[file,locpath]=uigetfile('.mat','Select 1st dataset');
cd(locpath); D = load(file);
cd(locpath);
D = load(file); D = D.Data;
if isstruct(D)
name = fieldnames(D);
tmp = sprintf('D.%s',cell2mat(name));
tmp = sprintf('D.%s',cell2mat(name(1)));
data2 = eval(tmp);
else
data2 = D;
Expand Down

0 comments on commit f03c7a6

Please sign in to comment.