Matlab code implementation signal digital frequency conversion