USING MATLAB…. Write a function called fuelCheck. Thisfunction will determine, given a desired new orbit you want aspacecraft to attain, whether that spacecraft can attain thatorbit. It will then modify your spacecraft to reflect the new orbitand an amount of fuel. It should take two inputs: a spacecraftstructure, and a new orbital height. It should have three outputs:a Boolean variable called status, and a spacecraft structure.
You can determine how fast a spaceship accelerates anddecelerates from the spaceship structure. The rate of acceleration,α, is given as: = /
Where F is the force of the engine, spaceship.engine, and
OR
OR