Search Search Any Topic from Any Website Search
1. Why does 1 0 1 0 occur? x = Original input signal y = Reconstructed signal (staircase approximation) MATLAB if x(i) >= y(i-1) dm(i) = 1; y(i) = y(i-1) + delta; else dm(i) = 0; y(i) = y(i-1) - delta; end Suppose: Input value = 0.05 Previous reconstructed value = 0.04 Step size = 0.1 The next reconstructed value becomes 0.14. Now the input (0.05) is less than 0.14, so the next bit becomes 0. The reconstructed value becomes 0.04 again. Now the input is greater than or equal to 0.04, so the next bit becomes 1. Therefore, the pattern becomes: 1 0 1 0 1 0 1 0 This is called granular noise . 2. How to get longer sequences of 1s and 0s? You need to reduce the step size. In your MATLAB code, change: matlab delta = 0.1; to: matlab delta = 0.02; You can also try: matlab delta = 0.01; With a smaller step size, the staircase can follow the gradual changes more ...