When trying to plot the results with clustering correction from a group comparison with 'two_samples_ttest' for one channel only using the gui, we get an error message.
We found that the problem was because in limo_stat_values lines 237-240 the number of dimensions expected for the variable bootM is wrong.
in line 232
bootM = squeeze(H0_data(:,:,1,:));
if we are using only one channel after the squeeze bootM has only 2 dim (not 3).
lines 236-241 should be:
if size(M,1) == 1
tmp = NaN(1,size(M,2),size(bootM,2));
tmp(1,:,:) = bootM; bootM = tmp;
tmp(1,:,:) = bootP; bootP = tmp;
clear tmp
end
Please confirm that our suggestion is adequate.
Thanks!
When trying to plot the results with clustering correction from a group comparison with 'two_samples_ttest' for one channel only using the gui, we get an error message.
We found that the problem was because in limo_stat_values lines 237-240 the number of dimensions expected for the variable bootM is wrong.
in line 232 bootM = squeeze(H0_data(:,:,1,:));
if we are using only one channel after the squeeze bootM has only 2 dim (not 3).
lines 236-241 should be: if size(M,1) == 1 tmp = NaN(1,size(M,2),size(bootM,2)); tmp(1,:,:) = bootM; bootM = tmp; tmp(1,:,:) = bootP; bootP = tmp; clear tmp end
Please confirm that our suggestion is adequate. Thanks!
Maria