calculating the velocity and distance of a rocket

11 次查看(过去 30 天)
A rocket gets up from the earth with speed 56.2917 and acceleration-9.81 .I need to solve the equation with ode45 command and get the velocity and distance in t=0:0.01:2.can you help me please
  5 个评论

请先登录,再进行评论。

回答(1 个)

Image Analyst
Image Analyst 2024-4-24
Why do you need differential equations? velocity = acceleration * time and distance = (1/2) a*t^2 + v*t + d0. You only are giving the downwards accelration due to gravity, not the acceleration due to the rocket thrust. And you are not giving the angle of the rocket but I guess you're assuming it's perfectly vertical.
Attached is a demo for a projectile with no drag with most parameters being variables that you can adjust the initial settings. It computes just about everything you can think of.

类别

Help CenterFile Exchange 中查找有关 Ordinary Differential Equations 的更多信息

产品

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by