Function File: fibodeco (code)

Returns the decoded Fibonacci value from the binary vectors code. Universal codes like Fibonacci codes have a useful synchronization property, only for 255 maximum value we have designed these routines. We assume user has partitioned the code into several unique segments based on the suffix property of unique strings "11" and we just decode the parts. Partitioning the stream is as simple as identifying the "11" pairs that occur, at the terminating ends. This system implements the standard binary Fibonacci codes, which means that row vectors can only contain 0 or 1. Ref: http://en.wikipedia.org/wiki/Fibonacci_coding

fibodeco ({[0 1 0 0 1 1]})
    ⇒ 10
fibodeco ({[1 1], [0 1 1], [0 0 1 1], [1 0 1 1]})
    ⇒ [1, 2, 3, 4]

See also: fiboenco.

Package: communications