finding the distance between points
Ältere Kommentare anzeigen
Hi! I'm studying for finals and I'm trying to rework a test problem. It's stumped me and I could use the help!
This is the problem:
Consider two airplanes that launch at the same moment and fly in the first quad of a 2-D space. Airplane A always travels at 800 km/h along a direction that makes a 20 degree angle with the x axis and originates at the coordinate origin. Airplane B always travels at 950 km/h in a direction that makes a 70 degree angle with the x axis and originates at 1000km in the x direction and 2000 km in the y direction. Make a function file that returns the distance between the two planes at a given time. Test your function at t=0,1, and 2 hrs.
I think I need to use either the norm function or the sqrt (x^2 + y^2) to find the distance but I'm kind of confused how to bring in the speed and what not into the equation. PLEASE HELP!
1 Kommentar
Matt Kindig
am 30 Apr. 2013
Bearbeitet: Matt Kindig
am 30 Apr. 2013
Write down (on paper) the equations for X and Y for each plane first. Hint:
X(t) = X0 + Vx*t %x position at time t, velocity-x component
You should then be able to figure out how to calculate the distance from there. The sqrt(x^2+y^2) thing you had will help.
Akzeptierte Antwort
Weitere Antworten (1)
E
am 30 Apr. 2013
0 Stimmen
Kategorien
Mehr zu Chassis Systems finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!