EE - 451 / E01 spring 2003

Advanced Communications Theory

Professor: Conner

Submitted By:

Andrew Buettner

Lab #3: Digital Modulation and Demodulation

Sunday, May 04, 2003



Table Of Contents

        1) Cover Page 1

        2) Table of Contents 2

        3) Objective 5

        4) Components Used 5

        5) Procedures 5

        6) Lab Data / Results 5

          1) Table 1 5

          2) Diagram 1 6

          3) Diagram 2 7

          4) Diagram 3 7

          5) Diagram 4 8

          6) Diagram 5 8

          7) Diagram 6 9

          8) Diagram 7 9

          9) Diagram 8 10

          10) Diagram 9 10

          11) Diagram 10 11

          12) Diagram 11 11

          13) Diagram 12 12

          14) Diagram 13 12

          15) Diagram 14 13

          16) Diagram 15 13

          17) Diagram 16 14

          18) Diagram 17 14

          19) Diagram 18 15

          20) Diagram 19 15

          21) Diagram 20 16

          22) Diagram 21 16

          23) Diagram 22 17

          24) Diagram 23 17

          25) Diagram 24 18

          26) Diagram 25 18


          Table Of Contents (Continued)

          27) Diagram 26 19

          28) Diagram 27 19

          29) Diagram 28 20

          30) Diagram 29 20

          31) Diagram 30 21

          32) Diagram 31 21

          33) Diagram 32 22

          34) Diagram 33 22

          35) Diagram 34 23

          36) Diagram 35 23

          37) Diagram 36 24

          38) Diagram 37 24

          39) Diagram 38 25

          40) Diagram 39 25

          41) Diagram 40 26

          42) Diagram 41 26

          43) Diagram 42 27

          44) Diagram 43 27

          45) Diagram 44 28

          46) Diagram 45 28

          47) Diagram 46 29

          48) Diagram 47 29

          49) Diagram 48 30

          50) Diagram 49 30

          51) Diagram 50 31

          52) Diagram 51 31

          53) Diagram 52 32

          54) Diagram 53 32

          55) Diagram 54 33

          56) Diagram 55 33

          57) Diagram 56 34

          58) Diagram 57 34

          59) Diagram 58 35

          60) Diagram 59 35

          61) Diagram 60 36

          62) Diagram 61 36

          63) Diagram 62 37

          64) Diagram 63 37

          65) Diagram 64 38

          66) Diagram 65 38

          67) Diagram 66 39


          Table Of Contents (Continued)

          68) Diagram 67 39

          69) Diagram 68 40

          70) Diagram 69 40

          71) Diagram 70 41

          72) Diagram 71 41

          73) Diagram 72 42

          74) Diagram 73 42

          75) Diagram 74 43

          76) Diagram 75 43

          77) Diagram 76 44

          78) Diagram 77 44

          79) Diagram 78 45

        7) Conclusions 45

        8) Attachments 45



      1. Original lab handout

      2. Original lab data

      3. Calculations

      4. Octave log

      5. BPSK .m file

      6. QPSK .m file











GNU Octave, version 2.0.17 (i686-pc-linux-gnu).

Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002 John W. Eaton.

This is free software with ABSOLUTELY NO WARRANTY.

For details, type `warranty'.


octave:1> digital(2.5,4)

warning: function `digital' defined within script file `/home/Leeloo/lab3/digital.m'

octave:2> digital(2.5,4)

warning: function `prs63' defined within script file `/home/Leeloo/lab3/prs63.m'error: value on right hand side of assignment is undefined

error: evaluating assignment expression near line 27, column 3

error: called from `digital'

octave:2> digital(2.5,4)

warning: function `prs' defined within script file `/home/Leeloo/lab3/prs.m'

error: value on right hand side of assignment is undefined

error: evaluating assignment expression near line 12, column 4

error: called from `prs63'

error: called from `digital'

octave:2> digital(2.5,4)

warning: ignoring trailing garbage after end of function

near line 5 of file `mod.m'

warning: function `noise' defined within script file `/home/Leeloo/lab3/noise.m'error: value on right hand side of assignment is undefined

error: evaluating assignment expression near line 32, column 3

error: called from `digital'

octave:2> digital(1,4)

warning: function `detect' defined within script file `/home/Leeloo/lab3/detect.m'

error: value on right hand side of assignment is undefined

error: evaluating assignment expression near line 38, column 4

error: called from `digital'

octave:2>

Display all 858 possibilities? (y or n)

octave:2> digital(1,4)


octave:2> digital(1,4)

warning: function `ber' defined within script file `/home/Leeloo/lab3/ber.m'

error: value on right hand side of assignment is undefined

error: evaluating assignment expression near line 43, column 4

error: called from `digital'

octave:2> digital(1,4)


Bit error rate from simulation = 0.013


warning: function `q' defined within script file `/home/Leeloo/lab3/q.m'

error: value on right hand side of assignment is undefined

error: evaluating assignment expression near line 47, column 7

error: evaluating if command near line 46, column 1

error: called from `digital'

octave:2> digital(1,4)


Bit error rate from simulation = 0.008


Predicted bit error rate = 0.006


octave:3> digital(1,8)


Bit error rate from simulation = 0.008


Predicted bit error rate = 0.006


octave:4> digital(1,16)


Bit error rate from simulation = 0.006


Predicted bit error rate = 0.006


octave:5> digital(2,4)


Bit error rate from simulation = 0.100


Predicted bit error rate = 0.106


octave:6> digital(2,8)


Bit error rate from simulation = 0.087


Predicted bit error rate = 0.106


octave:7> digital(2,16)


Bit error rate from simulation = 0.111


Predicted bit error rate = 0.106


octave:8> digital(4,4)


Bit error rate from simulation = 0.278


Predicted bit error rate = 0.266


octave:9> digital(4,8)


Bit error rate from simulation = 0.263


Predicted bit error rate = 0.266


octave:10> digital(4,16)


Bit error rate from simulation = 0.253


Predicted bit error rate = 0.266


octave:11> ook(1,4)

warning: function `ook' defined within script file `/home/Leeloo/lab3/ook.m'

octave:12> ook(1,4)

warning: function `iad' defined within script file `/home/Leeloo/lab3/iad.m'

error: value on right hand side of assignment is undefined

error: evaluating assignment expression near line 51, column 4

error: called from `ook'

octave:12> ook(1,4)

warning: function `sam' defined within script file `/home/Leeloo/lab3/sam.m'

error: value on right hand side of assignment is undefined

error: evaluating assignment expression near line 56, column 4

error: called from `ook'

octave:12> ook(1,4)

warning: function `expand' defined within script file `/home/Leeloo/lab3/expand.m'

error: value on right hand side of assignment is undefined

error: evaluating assignment expression near line 58, column 4

error: called from `ook'

octave:12> ook(1,4)


Bit error rate from simulation = 0.000


Predicted bit error rate = 0.000


octave:13> ook(2,4)


Bit error rate from simulation = 0.052


Predicted bit error rate = 0.188


octave:15> bpsk(1,4)

warning: function `bpsk' defined within script file `/home/Leeloo/lab3/bpsk.m'

octave:16> bpsk(1,4)


Bit error rate from simulation = 0.000


Predicted bit error rate = 0.000


octave:17> bpsk(2,4)


Bit error rate from simulation = 0.000


Predicted bit error rate = 0.000


octave:18> bpsk(4,4)


Bit error rate from simulation = 0.012


Predicted bit error rate = 0.039


octave:19> qpsk(1,8)

warning: function `qpsk' defined within script file `/home/Leeloo/lab3/qpsk.m'

octave:20> qpsk(1,8)

warning: ignoring trailing garbage after end of function

near line 5 of file `mod.m'


Bit error rate from simulation = 0.000


Predicted bit error rate = 0.000


octave:21> qpsk(2,8)


Bit error rate from simulation = 0.000


Predicted bit error rate = 0.000


octave:22> qpsk(4,8)


Bit error rate from simulation = 0.012


Predicted bit error rate = 0.017


octave:23>