Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Can someone please help with this matlab tutorial

Posted on 2009-04-04
12
Medium Priority
?
74 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
10 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
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
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
 
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 1400 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 600 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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 …
Aerodynamic noise is the cause of the majority of the noise produced by helicopters. The inordinate amount of noise helicopters produce is a major problem in the both a military and civilian setting. To remedy this problem the use of an aerogel coat…
This video teaches viewers about errors in exception handling.
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…
Suggested Courses

877 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