Barker code generation.

Namespace: dsp::telecom

Prototype

BitStream code_Barker(int n)

Parameters

nCode length (2, 3, 4, 5, 7, 11 ou r3)

Description

Example

  soit bs = code_Barker(13);

  soit nrz = (bs.array() - 0.5) * 2;
  soit [lags, rl] = xcorrb(nrz);

  Figures f;
  f.subplot().plot(nrz, "|bo", "Code de Barker - 13 bits");
  f.subplot().plot(lags, abs(rl), "r-o", "Auto-corrélation linéaire");

See also

code_mls()