Project 2 - Part 1

<--Part 1 | Overview

Let the array be swept for elevation angles ranging from π/2 to π/2 in one second cycles, starting from θ = 0^0.
Write a Matlab program to produce the signal received by the observer over four seconds.
  a. Simulate the sweeping process and observe if it meet the requirements
  b. Plot the envelope of the received signal as a function of time
  c. Play out the received signal. Amplify it if necessary.

Results

MatLab Code - For Part a

MatLab Code - For Part b & c

The envelope of the received signal can be seen in the plot below. The sound file is the recieved signal as heard by the observer.
Figure 1

Sound Clip

Conclusions

In the end I was able to accuratly plot the signal envelope. I was also able to the audio to sound correct. I decided to split
the MatLab code up into two protions. The first section shows the sweeping the array, and the second one plots the signal envelope
and creates the audio file.