Reference no: EM133112591
PRGA 2001 Programming and Simulation
Assignment: A priceless gem was stolen and is on the move. But luckily the gem has a tracking device embedded in it. The tracking device emits several "pings" which are detected by three different cell towers. Each cell tower is able to determine:
1) R - the distance of the gem from the cell tower, and
2) R - the rate at which that distance is changing with time.
Triangulation is the process whereby the gem can be located using these three signals. When the signals from the three cell towers are analyzed, we can determine the location of the gem as well as the velocity at which it is moving at the time of each ping.
You are required to use the cell tower data to calculate the location (coordinates) and velocity of the gem at the time of each ping, and plot its trajectory as a 3D curve.
Steps
1) Import the cell tower data from CellrowerData.csv using the csvread command. Do not rename the csv tile.
2) Create the necessary arrays and matrices.
3) For each ping, solve the first system of equations to find the X, Y and Z coordinates of the gem.
4) Then using the matrix equation to find the velocity components.
5) The location and velocity values should be presented in a table format:
6) Compile the X, Y and Z values for all the pings, and plot as a 3D curve.
Attachment:- Programming and Simulation.rar