Home > freetb4matlab > info-theory > unarydec.m

unarydec

PURPOSE ^

%

SYNOPSIS ^

function rval=unarydec(val)

DESCRIPTION ^

% -*- texinfo -*-
% @deftypefn {Function File} {} unarydec (@var{value})
%
% This function decodes the unary encoded value.
% Useful if you are trying to perform golomb-rice coding
% value needs to be a number or row-vector. For example
%
% @example
% @group
%  message = [5   4   4   1   1   1]
%  coded = unaryenc(message)
%        @result{} [62   30   30    2    2    2]
%  unarydec(coded)
%        @result{} [5   4   4   1   1   1]
% @end group
% @end example
% @end deftypefn
% @seealso{unaryenc}

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:
Generated on Fri 22-May-2009 15:13:00 by m2html © 2003