Hi,
In order to get rid of an annoying warning message (Warning: Integer operands are required for colon operator when used as index), I think the following code (process_evt_detect.m, line 341-347):
% ignore the first and last 5% of the signal (incase of artifacts)
Fsig = Fsig(length(Fsig)*0.05:end-(length(Fsig)*0.05));
stdF = std(Fsig);
else
Fsig = F;
Fsig = Fsig(length(Fsig)*0.05:end-(length(Fsig)*0.05));
stdF = std(Fsig);
should be updated to
% ignore the first and last 5% of the signal (incase of artifacts)
Fsig = Fsig(round(length(Fsig)*0.05):end-round(length(Fsig)*0.05));
stdF = std(Fsig);
else
Fsig = F;
Fsig = Fsig(round(length(Fsig)*0.05):end-rounf(length(Fsig)*0.05));
stdF = std(Fsig);
Best,
Christian