function rs_gen_setup
m=8;
g=rsgenpoly(255, 239, 285, 0)
msg = gf(ones(1, 239),m);
codeword = rsenc(msg, 255, 239, g)