Time for Distance with variable velocity
Show older comments
Hi!
I have an object that is moving towards a wall. The closer it gets to the wall the slower it gets, but it reaches the wall with a certain velocity (it does not stop at the wall).
So the velocity is depending on the distance to the wall: v(x) = K*(x^2) where K is a constant.
At the beginning, the object is located with the distance L to the wall. How can I calculate how long it takes for the object to reach the wall? I know the function of the velocity.
Is there a fast way to solve that in matlab?
Thanks very much!
3 Comments
Teja Muppirala
on 8 Mar 2011
You said "it reaches the wall with a certain velocity (it does not stop at the wall)"
However
v(x) = K*x^2 <--- This equals zero at the wall (v(0) = 0).
Can you clear up this miscommunication?
Paulo Silva
on 8 Mar 2011
If the starting point is L units from the wall than v(0)=0 should be your velocity at the wall, now it depends on the kind of motion, see http://en.wikipedia.org/wiki/Equations_of_motion , find the position equation that fits your motion and substitute the position values and speed, that will get you the time.
Steve
on 8 Mar 2011
Accepted Answer
More Answers (0)
Categories
Find more on Symbolic Math Toolbox in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!