function rs_example
% (7, 3) reed-solomon
%input
m = 3; % Number of bits per symbol
n = 2^m-1; k = 3; % Word lengths for code
msg = gf([2 7 3],m); % Two rows of m-bit symbols
code = rsenc(msg,n,k)
err = gf([0 2 0 1 0 0 0], m);
rcv = code + err
dec = rsdec(rcv, n, k) 