Rocket 2DOF trajectory model, loop seems to be not working.

8 views (last 30 days)
Hello, i tried to create a model to simulate a rocket. Altitude must be nearly at 3000 meters yet my values are either really low and constant or they are not in loop.
This is much to ask, i could not find the error. I hope mathematical equations are true but i am in learning process for Matlab.
I will provide the code here alongside the .csv file from Excel i used to get thrust values. I need to understand where i am doing a wrong thing.
It may be faulty logic or equation order in loop, incorrect loop method or something about incompatibility of arrays and matrixes as i understand
I am trying to achieve movement in x and z axes ultimately, i have initial velocity and flight path angle and i get thrust values from table.

Answers (0)

Categories

Find more on Programming in Help Center and File Exchange

Products


Release

R2016b

Community Treasure Hunt

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

Start Hunting!