Question: 1 . 2 Python Exercises 1 . 2 . 1 Creating Barker code signals in Python In the exercises that follow, you will implement matched
Python Exercises
Creating Barker code signals in Python
In the exercises that follow, you will implement matched filters for a set of signals known as Barker codes. Barker codes have been used in pulse compression radar and sonar systems and for synchronization in digital communication systems. You can read more about Barker codes in Chapter of the book Detection, Estimation, and Modulation Theory, Volume III by Prof. Van Trees. You can also check out the Wikipedia page for Barker codes. Figure shows the Barker codes of length and You will see below that these signals have desirable autocorrelation properties.
Since Barker codes consist of a series of ls and s they are easy to generate with digital logic. Similarly, it is easy to use python's logic functions to define a Barker code signal. The following code can be used to generate samples of the length Barker codle signal bt :
fs
dur
tt nparange dur, fs
n ttfs
btt&tttt&tt
Type this code into python and verify that it generates samples of the signal bt Make two plots of the signal you generated: one should be a line plot versus time t in seconds, stored in vector tt and the other should be a stem plot versus the discrete index n stored in vector n
Note that De Van Trees was a Professor in the ECE Department at Mason.
Figure : Barker codes of length and
Using the code described above as a model, write code to generate samples of the length and length Barker codes. Use the same sample period that you used to generate the length codes. Include plots of the signals bt and bt in your report.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
