結果 : matlab code for error detection and correction