Home > freetb4matlab > comm > rleenco.m

rleenco

PURPOSE ^

%

SYNOPSIS ^

function rmsg=rleenco(message)

DESCRIPTION ^

% -*- texinfo -*-
% @deftypefn {Function File} {} rleenco (@var{message})
%
% Returns  run-length encoded @var{message}. The
% rle form is built from @var{message}. The original @var{message}
% has to be in the form of a  row-vector. The encoded @var{message}
% format (encoded RLE) is like  [repetition factor]+, values.
%
% An example use of @code{rleenco} is
% @example
% @group
%          message=[    5   4   4   1   1   1]
%          rleenco(message) %gives
%          ans = [1 5 2 4 3 1];
% @end group
% @end example
% @end deftypefn
% @seealso{rleenco}

CROSS-REFERENCE INFORMATION ^

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