simple code\bit2sym.m ...........\errate.m ...........\id2bit.m ...........\randbits.m ...........\scatdiag.m simple code