Commit 9f3e66ff authored by Markus Mueller-Trapet's avatar Markus Mueller-Trapet

easier processing

parent 97524606
......@@ -96,10 +96,9 @@ if strcmp(mode,'filter') %mli version
% sum the squared values
band_values = zeros(numel(fmExact),input.nChannels);
for idxch = 1:numel(fmExact)
% don't be confused: sqrt will be extracted at the end!
band_values(idxch,:) = sum(abs(squeeze(result.freq(:,idxch,:))).^exponent);
band_values = squeeze(sum(abs(result.freq).^exponent,1));
if input.nChannels == 1
band_values = band_values(:);
% FFT Mode
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment