Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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:

image text in transcribed

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Intermediate accounting

Authors: J. David Spiceland, James Sepe, Mark Nelson

7th edition

978-0077614041, 9780077446475, 77614046, 007744647X, 77647092, 978-0077647094

More Books

Students also viewed these Accounting questions