
322 CHAPTER 19. PROJECT 10: QPSK DIGITAL RECEIVERS
Since a number of variables carry forward from the execution of the modified_QPSK_
DIGTx_listing_01.m file, you must run this script file before you run any of the receiver
files. An explanation of Listing 19.2 follows.
1. (Line 2): Saves the outputArray values from the QPSK transmitter m-file. This is
necessary since the AGC will modify these values. This operation works as a pair
with Line 49.
2. (Line 5): Scales the outputArray to 10 percent of its initial value. This will allow
you to observe and test the AGC’s operation.
3. (Lines 8–9): Initializes to zero the initial conditions associated with the ...