dfFrontalHemisphereMS.m 886 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
function [ freqs, mags, metadata ] = dfFrontalHemisphereMS( alpha, beta, basepath )
% Frontal hemisphere magnitude spectrum weighted by frequency

% <ITA-Toolbox>
% This file is part of the application openDAFF for the ITA-Toolbox. All rights reserved.
% You can find the license for this m-file in the application folder.
% </ITA-Toolbox>

           
    % Third-octave resolution
    freqs = [20 25 31.5 40 50 63 80 100 125 160 ...
             200 250 315 400 500 630 800 1000 1250 1600 ...
             2000 2500 3150 4000 5000 6300 8000 10000 12500 16000 20000];
    
    channels = 1;
    mags = zeros(channels, length(freqs));
    metadata = [];
    
    for c=1:channels
        for f=1:length(freqs)
            if ((alpha <= 90) || (alpha >= 270))
                mags(c,f) = 1/f;
            else
                mags(c,f) = 0;
            end
        end
    end    
end