% -*- 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}