Time to Reach a Specified Height Matlab Help

Time to Reach a Specified Height

Consider the variable-mass rocket treated in Example 4.5-2. Write a program to
determine how long it takes for the rocket to reach 40,000 ft if the bum time is 50 see .

The pseudocode appears in Table 4.5-3. Because we do not know the time required, a while loop is convenient to use. The program in Table 4.5-4 performs the task and



is a modification of the program in Table 4.S-2. Note that the new program allows for the possibility that the rocket might not reach 40,000 ft. It is important to write your programs to handle all such foreseeable circumstances. The answer given by the program is 53 sec.

Posted on July 30, 2015 in Programming with MATLAB

Share the Story

Back to Top
Share This