about simulink
Thanks jiangxb,
You were right. Now that I have changed the quantizer and used a sign function, the result is much better. But as I can't define the clock concept well, the result still has to improve (I defined a function instead of the quantizer as below). By changing the oversampling ration a little, the SNR changes a lot.
The function that I defined for the quantizer:
function y = fcn(u, clk)
if clk
if u<0
y = -1;
else
y = 1;
end
else
y = 0;
end
The attached is the new results which are much better than the previous one.