diff options
author | Andy Walls <awalls.cx18@gmail.com> | 2017-08-08 18:10:40 -0400 |
---|---|---|
committer | Andy Walls <awalls.cx18@gmail.com> | 2017-08-08 18:10:40 -0400 |
commit | 818de9c6833c2f145cf72b2b4a6a5122e152bbf5 (patch) | |
tree | a21f13b09b3638c9372599f10a5e33bb1cf636d5 /gr-digital/examples/demod | |
parent | 688c1853def7210ec0baca9f09ec1b98d8e90474 (diff) |
digital: Clarify a magic number in the symbol_sync_test_float_ted_gain.m example
Diffstat (limited to 'gr-digital/examples/demod')
-rw-r--r-- | gr-digital/examples/demod/symbol_sync_test_float_ted_gain.m | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/gr-digital/examples/demod/symbol_sync_test_float_ted_gain.m b/gr-digital/examples/demod/symbol_sync_test_float_ted_gain.m index b4d47010b3..c6860f2442 100644 --- a/gr-digital/examples/demod/symbol_sync_test_float_ted_gain.m +++ b/gr-digital/examples/demod/symbol_sync_test_float_ted_gain.m @@ -54,8 +54,11 @@ x = tea_sps * upsample(symbols, tea_sps); baseband = filter(pf_taps, [1], x); % Create rectangular matched filter, -% that's a little too long, to introduce more ISI -isi_sps = 6; % Play with isi samples to see S-curve effects +% that's a little too long (7 sps vs 6.667 sps), to introduce more ISI +isi_sps = round((tea_sps/a_sps * 7) - tea_sps); % Play with isi samples to see S-curve effects +if (mod(isi_sps, 2) != 0) + isi_sps = isi_sps + 1; +end mf_taps = 1/(tea_sps+isi_sps) * ones((tea_sps+isi_sps), 1); mf_len = length(mf_taps); mf_delay = mf_len/2; |