two attempts of calculating BER in a single m-file