Question: MATLAB: 1.A Construct a time array from 0 to 1/25 seconds with ts=1/fs interval (sample frequency fs=2000). Name it 'tn'. Code: fs = 2000; tn=0:1/fs:1/25
MATLAB:

1.A Construct a time array from 0 to 1/25 seconds with ts=1/fs interval (sample frequency fs=2000). Name it 'tn'. Code: fs = 2000; tn=0:1/fs:1/25 Construct a signal 'm' which is a sine wave with 0.5 amplitude and frequency of 50, time is 'tn'. The signal 'm' is our modulating message signal. Encode modulating message signal 'm' using Delta modulation encoder function 'Cn= encoder_dm (m,Q)' With input signal 'm' and step size 'Q' are the parameter to the function. And 'Cn' is the output, select Q = 1/5; Decode encoder output 'Cn' using Delta modulation decoder function 'Sn=decoder_dm (Q,Cn)' With input signal 'Cn' and step size 'Q'. Output 'Sn'. Filter decoder output 'Sn' using function low pass filter 'Sa=lpf(100,4*50/fs ,Sn)' with Input signal 'Sn, Output 'Sa'. Plot the signal of input 'm', encoder output 'Cn', decoder output Sn and Lowpassfilter output 'Sa' vs time. (you can use 'stairs' to draw Cn and Sn instead 'plot' function) 1.B By change the (1) fs to 500, 1000, rerun program. What happen? Why? 1.C By change the (2) step size to 1/20, 1/40 rerun program. What happen? Why? 1.A Construct a time array from 0 to 1/25 seconds with ts=1/fs interval (sample frequency fs=2000). Name it 'tn'. Code: fs = 2000; tn=0:1/fs:1/25 Construct a signal 'm' which is a sine wave with 0.5 amplitude and frequency of 50, time is 'tn'. The signal 'm' is our modulating message signal. Encode modulating message signal 'm' using Delta modulation encoder function 'Cn= encoder_dm (m,Q)' With input signal 'm' and step size 'Q' are the parameter to the function. And 'Cn' is the output, select Q = 1/5; Decode encoder output 'Cn' using Delta modulation decoder function 'Sn=decoder_dm (Q,Cn)' With input signal 'Cn' and step size 'Q'. Output 'Sn'. Filter decoder output 'Sn' using function low pass filter 'Sa=lpf(100,4*50/fs ,Sn)' with Input signal 'Sn, Output 'Sa'. Plot the signal of input 'm', encoder output 'Cn', decoder output Sn and Lowpassfilter output 'Sa' vs time. (you can use 'stairs' to draw Cn and Sn instead 'plot' function) 1.B By change the (1) fs to 500, 1000, rerun program. What happen? Why? 1.C By change the (2) step size to 1/20, 1/40 rerun program. What happen? Why
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
