bugfix matlab: single sided fft

pull/1/head
Sebastian Held 2010-03-30 13:13:27 +02:00
parent 813683304b
commit 3611b591e9
1 changed files with 2 additions and 2 deletions

View File

@ -23,6 +23,6 @@ for n=1:numel(filenames)
L=numel(val); L=numel(val);
UI.FD{n}.f = (0:L-1)/L/dt; UI.FD{n}.f = (0:L-1)/L/dt;
UI.FD{n}.f = UI.FD{n}.f(1:floor(L/2)); UI.FD{n}.f = UI.FD{n}.f(1:floor(L/2));
UI.FD{n}.val = fft(val)/L; UI.FD{n}.val = 2*fft(val)/L;
UI.FD{n}.val = UI.FD{n}.val(1:floor(L/2)); UI.FD{n}.val = UI.FD{n}.val(1:floor(L/2));
end end