mass calculation error when computing rocket trajectory

Hello,
I have project, where I am trying to compute the trajectory of a rocket and also compute when to release a smaller rocket. The code works in general and uses Rungekutta. The main issue is computing the fuelconsumtion/remaining fuel mass. The issue seems that the mass resets after some time and I am not sure the fuel consumtion or fuel mass is computed in the correct manner.
Any help is greatly appriciated

1 Comment

Please hardcode the user inputs to be made to run your code and to reproduce your problem.

Sign in to comment.

Answers (0)

Categories

Find more on Programming in Help Center and File Exchange

Asked:

al
on 19 Jan 2025

Commented:

on 19 Jan 2025

Community Treasure Hunt

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

Start Hunting!