Create write_decoded.m