I suppose that you multiplied values in MATLAB. I think that your signal samples are the numbers of 'uint8' type. In order to multiply signal samples properly you have to convert them on 'double' type. I checked your example in MATLAB Command Window. The listing is below: