function A = get_A( b)
%
% get_A( b) - create LLSQ sequence matrix for ISI

global Memory;
global states;

N = size(b,1);

A = zeros( N, Memory+1);

ex = [flipud(states(1:Memory,1)); b];

for i=1:Memory+1
  A(:,i) = ex( [1:N] + (Memory-i+1));
end
