[Solved] Using Matlab Write Function Called Fuelcheck Function Determine Given Desired New Orbit Wa Q37191255
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. Youcan determine how fast a spaceship accelerates and decelerates fromthe spaceship structure. The rate of acceleration, α, is given as: = / Where F is the force of the engine, spaceship.engine, and mis the mass of the spaceship, spaceship.mass. Once you have α, youcan determine how long both changes in velocity take (in seconds),as: = |∆ 1| + |∆ 2| You should be able to determine thechanges in velocity by calling your hohmann function. Using thisamount of time, we can determine if we have enough fuel. The enginewill expel the following amount of energy: = ∗ ∗ Ifthis amount of energy is greater than spacecraft.fuel, set statusto 0. Otherwise, set status to 1. If status is 1, update the amountof fuel to reflect the spent fuel from the change of orbit, and theorbital height to reflect the new orbital height, and return thosenew values in the updated spacecraft structure. If status is 0,return the original spacecraft structure.
Expert Answer
Answer to USING MATLAB…. Write a function called fuelCheck. This function will determine, given a desired new orbit you want a s… . . .
OR

