commit-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Commit-gnuradio] r5596 - gnuradio/branches/features/ofdm/receiver/gnura


From: trondeau
Subject: [Commit-gnuradio] r5596 - gnuradio/branches/features/ofdm/receiver/gnuradio-examples/python/ofdm
Date: Fri, 1 Jun 2007 16:50:08 -0600 (MDT)

Author: trondeau
Date: 2007-06-01 16:50:08 -0600 (Fri, 01 Jun 2007)
New Revision: 5596

Modified:
   
gnuradio/branches/features/ofdm/receiver/gnuradio-examples/python/ofdm/ofdm_sync.m
Log:
debugged calculation of theta in OFDM sync

Modified: 
gnuradio/branches/features/ofdm/receiver/gnuradio-examples/python/ofdm/ofdm_sync.m
===================================================================
--- 
gnuradio/branches/features/ofdm/receiver/gnuradio-examples/python/ofdm/ofdm_sync.m
  2007-06-01 21:57:28 UTC (rev 5595)
+++ 
gnuradio/branches/features/ofdm/receiver/gnuradio-examples/python/ofdm/ofdm_sync.m
  2007-06-01 22:50:08 UTC (rev 5596)
@@ -6,21 +6,23 @@
 
   d = abs(signal).^2;
   g = [ zeros(1,FFTSIZE) signal(1:max(size(signal))-FFTSIZE) ];
+  g1 = conj(g);
   f = abs(g).^2;
   c = d + f;
   moving_sum_taps = rho/2 * ones(1,CPLEN);
   b = conv(c,moving_sum_taps);
   b = b(1:max(size(signal)));
+  %b = b(CPLEN:max(size(b)));
+  
+  k = g1 .* signal;
 
-  k = g .* signal;
-
-  moving_sum_taps2 = ones(CPLEN,1);
+  moving_sum_taps2 = ones(1, CPLEN);
   h = conv(k,moving_sum_taps2);
   h = h(1:max(size(signal)));
+  %h = h(CPLEN:max(size(h)));
   
-  a = abs(h).^2;
+  a = abs(h);
   
-
   theta = a-b;
 
 endfunction





reply via email to

[Prev in Thread] Current Thread [Next in Thread]