diff options
| author | Marin Ivanov <[email protected]> | 2025-07-25 10:17:14 +0300 |
|---|---|---|
| committer | Marin Ivanov <[email protected]> | 2026-01-18 20:09:26 +0200 |
| commit | 0168586485e6310c598713c911b1dec5618d61a1 (patch) | |
| tree | 6aabc2a12ef8fef70683f5389bea00f948015f77 /octave/ofdm_time_sync.m | |
* codec2 cut-down version 1.2.0
* Remove codebook and generation of sources
* remove c2dec c2enc binaries
* prepare for emscripten
Diffstat (limited to 'octave/ofdm_time_sync.m')
| -rw-r--r-- | octave/ofdm_time_sync.m | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/octave/ofdm_time_sync.m b/octave/ofdm_time_sync.m new file mode 100644 index 0000000..6c14627 --- /dev/null +++ b/octave/ofdm_time_sync.m @@ -0,0 +1,22 @@ +% ofdm_time_sync.m +% David Rowe June 2019 +% +% Tests ofdm modem sync time, using real, off air files + +function ofdm_time_sync(filename, Ntrials=10) + + time_to_sync = []; passes = fails = 0; + for toffset=0:Ntrials-1 + atime = ofdm_ldpc_rx(filename, mode="700D", interleave_frames = 1, "", start_secs=toffset, len_secs=5); + if atime != -1 + passes++; + time_to_sync = [time_to_sync atime]; + else + fails++; + end + end + printf("pass: %d fails: %d mean: %3.2f var %3.2f\n", passes, fails, mean(time_to_sync), var(time_to_sync)); + figure(1); clf; plot(time_to_sync); +endfunction + + |
