% perform one iteration of joint data and channel estimation for the x4 example.

% run the viterbi algorithm
%
  vit

% get estimated data values
%
  b = get_ex;

% check accuracy
%
  sum( b' ~= x)

% set LLSQ coefficient matrix
%
  A = get_A( b, N, Memory);

% solve for the new channel coefficients
%
  FIR = A\(z')

% set new FSM state transition cost matrix
%
  trans = FSM_trans( states, FIR);
