Minor bug when using single channel / combined data
In the magnitude combination: (if strcmpi(stepname,'prep.all') || strcmpi(stepname,'prep.magn_comb')
in the line 613 the if statement is not working properly:
if size(magn_orig,4)
should be changed to i.e. if size(magn_orig,4) > 1
.