Skip to content
tlatsas edited this page May 12, 2012 · 5 revisions

About line-coding functions

Matlab functions that emulate popular line coding techniques. They (mostly) work with GNU Octave too.

Sample figures using GNU Octave

Unipolar Non-Return-to-Zero Level

> d = [ 0 1 0 0 1 1 0 0 0 1 1 ];
> u_nrzl(d)

Polar Non-Return-to-Zero Level

> d = [ 0 1 0 0 1 1 0 0 0 1 1 ];
> p_nrzl(d)

Non-Return-to-Zero Inverted

> d = [ 0 1 0 0 1 1 0 0 0 1 1 ];
> nrzi(d)

Manchester

> d = [ 0 1 0 0 1 1 0 0 0 1 1 ];
> manchester(d)

Differential Manchester

> d = [ 0 1 0 0 1 1 0 0 0 1 1 ];
> diff_manchester(d)

Bipolar with 8-Zeros Substitution

> d = [ 1 1 0 0 0 0 0 0 0 0 1 1 0 0 0 0 0 1 0 ];
> b8zs(d)

Bipolar Alternate Mark Inversion

> d = [ 0 1 0 0 1 1 0 0 0 1 1 ];
> b_ami(d)