


% -*- texinfo -*-
% @deftypefn {Function File} {} huffmanenco (@var{sig}, @var{dict})
%
% Returns the Huffman encoded signal using @var{dict}. This function uses
% a @var{dict} built from the @code{huffmandict} and uses it to encode a
% signal list into a huffman list. A restrictions is that a signal set must
% strictly belong in the range @code{[1,N]} with @code{N = length(dict)}.
% Also @var{dict} can only be from the @code{huffmandict} routine.
% An exmaple of the use of @code{huffmanenco} is
%
% @example
% @group
% hd = huffmandict(1:4,[0.5 0.25 0.15 0.10])
% huffmanenco(1:4,hd) % [ 1 0 1 0 0 0 0 0 1 ]
% @end group
% @end example
% @end deftypefn
% @seealso{huffmandict, huffmandeco}