views:

178

answers:

6
len = length(range);
K = 2^nextpow2(2*len - 1);
halfK = round(K/2);
U = zeros(halfK, 1);
centfreqs = data.model.cochlea.centfreqs;

for i = 1 : data.model.cochlea.gt.nch % number of channels
    x = data.au(range, i).*window;
    X = abs(fft(x, K));
    bin = round(2*centfreqs(i)*K/data.fs);
%     if i==4 plot(X); pause; end
    X(bin : halfK) = 0;
    U = U + X(1:halfK);
end
U = U';

the code came from here

+15  A: 

Looks to me like MATLAB.

Jon Purdy
+1 for beating me to the punch.
David Lively
+3  A: 

.m is used for either matlab or objective-c

I don't remember how matlab looks like in detail, but looking at the link it seems like matlab.

stefanB
When I read ".m", I thought "Obj-C". When I saw "%", I thought "MATLAB".
Jon Purdy
+1  A: 

I was going to say Mathematica but there are far too few square brackets. =) Definitely Matlab.

David Lively
+2  A: 

It's a MATLAB file. You can verify this if you read the Report in the docs folder of the project.

Geodesic
A: 

Thankfully it's not MUMPS.

anthony
Frighteningly, Wikipedia lists 46 programming languages (including MUMPS) beginning with the letter 'M'...
anon
I would choose any of those 45 over MUMPS any day.
anthony
+1  A: 

looks like matlab.

Chris Cleeland