diff options
author | Piotr Krysik <perper@o2.pl> | 2009-07-01 00:12:20 +0200 |
---|---|---|
committer | Piotr Krysik <perper@o2.pl> | 2009-07-01 00:12:20 +0200 |
commit | 8fd6a5bd046991432b0d651b728f7d6efaa265cf (patch) | |
tree | 59967c437ae981f358c1aee7c9c2fc4a5d7ae18e /viterbi_generator | |
parent | 3f91ce4f1c4a047a94497041b82c77c815d52a1f (diff) |
corrected viterbi_generator test generator
Diffstat (limited to 'viterbi_generator')
-rwxr-xr-x | viterbi_generator/tests/test_gen.m | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/viterbi_generator/tests/test_gen.m b/viterbi_generator/tests/test_gen.m index a2639fb..b0cb2ac 100755 --- a/viterbi_generator/tests/test_gen.m +++ b/viterbi_generator/tests/test_gen.m @@ -18,7 +18,7 @@ load tests/data/normal_burst.dat; SYMBOLS = make_symbols(Lh); START = make_start(Lh,SYMBOLS); -STOP = make_stops(Lh,SYMBOLS); +STOPS = make_stops(Lh,SYMBOLS); [increment, pm_candidates_imag, pm_candidates_real] = equations_gen(Lh); @@ -57,11 +57,11 @@ for i=1:BURST_SIZE, fprintf(test_file," input[%d] = gr_complex(%0.10f,%0.10f);\n",i-1, real(normal_burst(i)), imag(normal_burst(i))); end -[STOPS_NUM c] = size(STOP); +[c STOPS_NUM] = size(STOPS); stop_states=[" unsigned int stop_states[" int2str(STOPS_NUM) "] = { "]; for i=1:STOPS_NUM, - stop_states=[ stop_states int2str(ceil(STOP(i)/2)-1) ", "]; + stop_states=[ stop_states int2str(ceil(STOPS(i)/2)-1) ", "]; end stop_states=[ stop_states " };\n\n" ]; |