From e90ef82346d37c991f3ae848022e2ed3bb206954 Mon Sep 17 00:00:00 2001 From: Sebastian Held Date: Tue, 30 Mar 2010 13:13:27 +0200 Subject: [PATCH] bugfix matlab: single sided fft --- matlab/ReadUI.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/matlab/ReadUI.m b/matlab/ReadUI.m index c4d94b1..0d79a9e 100644 --- a/matlab/ReadUI.m +++ b/matlab/ReadUI.m @@ -23,6 +23,6 @@ for n=1:numel(filenames) L=numel(val); UI.FD{n}.f = (0:L-1)/L/dt; 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)); -end \ No newline at end of file +end