Solved

Can someone please help with this matlab tutorial

Posted on 2009-04-04
12
62 Views
Last Modified: 2016-02-10
I understand the tutorial up to this point...

Again saving the program as a separate
file, further modify it to show how the hyper-
bolas corresponding to TOA measurements at
three stations locate a source in two spatial di-
mensions. Let the station locations be at the
vertices of the isosceles triangle x1,y1 = (10,10)
x2,y2 = (+10,10), and x3,y3 = (0,+10) km,
respectively. Use Matlabs input function to
specify a source location (also in km units), and
calculate the times the signal would be received
at each station. Finally, plot the hyperbolae
corresponding to each of the three baselines to
see the solution. Use the pause function in
your for loop to identify each hyperbola as it is
added to the plot. Your plot should look some-
thing like Figure 6.

I have drawn out where I understand the baselines to be.
I not sure where to go from here...

thanks in advance
toa.pdf
pic.png
0
Comment
Question by:jtiernan2008
  • 4
  • 3
  • 3
12 Comments
 
LVL 27

Expert Comment

by:aburr
ID: 24073502
" Let the station locations be at the
vertices of the isosceles triangle x1,y1 = (10,10)
x2,y2 = (+10,10), and x3,y3 = (0,+10) km,"
---
Two of these points do not appear on your drawing and are actually the same point.
0
 
LVL 27

Expert Comment

by:aburr
ID: 24073561
Step 1
"Use Matlabs input function to
specify a source location (also in km units), and
calculate the times the signal would be received
at each station."

Pick a point, any point and do three calculations giving the time a signal from your point would arrive at the three points on your triangle.
t = d/v    where t is the time d is the distance from your triangle point to the point you picked and v is the speed of the signal.

0
 
LVL 15

Expert Comment

by:yuk99
ID: 24073845
> x1,y1 = (10,10)
It's actually (-10,-10). Minus just was not copied properly.

Do you know how to calculate distance between your points?
Can you calculate angle between each baseline and x axis to determine the rotation?
Did you solve Exercise 3 on page 3 to derive your a and b parameters from the distance?

Before coding in Matlab you need to solve those problems.
0
 
LVL 1

Author Comment

by:jtiernan2008
ID: 24081237
"Do you know how to calculate distance between your points?"
=> d=sqrt((xi-x)^2+(yi-y)^2)

"Can you calculate angle between each baseline and x axis to determine the rotation?"
=> That is the part I do not understand... why do we rotate? Do we rotate the baseline or calculate the hyperbola then rotate the hyperbola? Is theta the angle between the x axis and the baseline f1f3 the angle between the baseline between the x axis and the baseline f2f3?
theta is calculated with Tan(theta) = Opposite / Adjacent.

"Did you solve Exercise 3 on page 3 to derive your a and b parameters from the distance?"
Is this a+b=sqrt((xi-x)^2+(yi-y)^2) since on pg 3 it says a^2+b^2=d^2?


 
0
 
LVL 1

Author Comment

by:jtiernan2008
ID: 24081248
sorry forgot to say, updated screenshot below for the comment above
screener.png
0
Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

 
LVL 15

Expert Comment

by:yuk99
ID: 24081461
Sorry, you should calculate angle between each baseline (line between 2 stations) and y axis. Because if 2 stations are located on the y axis you don't have to rotate hyperbolas.
0
 
LVL 1

Author Comment

by:jtiernan2008
ID: 24081540
What do you do after you calculate the angle between the baselines and the y axis?

Why do you rotate in the first place? This is the part I am having difficulty with

Also "Did you solve Exercise 3 on page 3 to derive your a and b parameters from the distance?"
Is this a+b=sqrt((xi-x)^2+(yi-y)^2) since on pg 3 it says a^2+b^2=d^2?
0
 
LVL 15

Accepted Solution

by:
yuk99 earned 350 total points
ID: 24081773
In your tutorial page 2:
"the differences in the arrival times at a pair of stations i,j constrain the source to lie on a hyperboloid of revolution about the baseline between the two stations."
The equation (7) page 3 defined for hyperbola with foci lying on the y axis, this your 2 stations. If they are not on y axis you need to rotate the hyperbola.

So you need to find a and b parameters for your hyperbola. Distance between staitions is 2d, right? You have one equation, but you have 2 unknowns. I didn't go through all the tutorial, so I don't know the answer. Willl think about it.
0
 
LVL 27

Assisted Solution

by:aburr
aburr earned 150 total points
ID: 24082043
"That is the part I do not understand... why do we rotate?"
You rotate because the program to calculate te hyperbola is written so that the two foci are on the y axis. The result gives you the hyperbola but you have to rotate it to get it to put the real foci in the correct place.
0
 
LVL 1

Author Closing Comment

by:jtiernan2008
ID: 31566575
thanks lads...
I need to study this more I think :)
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
post4 challenge 28 83
Python multiple IF statements 4 69
Exam question 48 101
Problem to page 4 29
Having just graduated from college and entered the workforce, I don’t find myself always using the tools and programs I grew accustomed to over the past four years. However, there is one program I continually find myself reverting back to…R.   So …
When we want to run, execute or repeat a statement multiple times, a loop is necessary. This article covers the two types of loops in Python: the while loop and the for loop.
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now