How to apply velocity + acceleration to a position?
2 次查看（过去 30 天）
Youssef Khmou 2014-11-27
编辑：Youssef Khmou 2014-11-27
@Roger gave the solution (Vx,Vy) . try to write a feedback of this solution.
title(' Particle Trajectory')
Roger Stafford 2014-11-26
You can approach this problem two ways. One is symbolic and other is numeric. As you are probably aware, you have two entirely independent differential equations here which simplifies things both for the numeric and symbolic methods.
For the symbolic approach you can either use matlab's 'dsolve' function to obtain analytic expressions for x and y versus time t, or you can use your calculus to solve these differential equations by hand. The latter is simple to do. For example, your equation
dvx/dt = -0.0004*vx ^2
can be expressed as
=1/vx^2*dvx = 0.0004*dt
and both sides can easily be integrated.
For the numeric approach you can set up these differential equations to be solved using one of the 'ode' functions. Read about them at:
Youssef Khmou 2014-11-26
You can verify this primary solution theoretically :
If it is correct, you can integrate for second time to get (x,y)