{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

Lab Test #1 v3

# Lab Test #1 v3 - = 150000 kg and q = 2700 kg/s Note Your...

This preview shows page 1. Sign up to view the full content.

ECOR 2606 Lab Test #1 v3 (This problem adapted from problem 5.20 in the text) The upward velocity v of a rocket is is given by: gt qt m m u v 0 0 ln where v = upward velocity of rocket (m/s) u = relative velocity at which fuel is expelled (m/s) q = fuel consumption rate (kg/s) m 0 = initial mass of rocket (kg) t = time in seconds g = gravity (9.81 m/s 2 ) Part I (3 marks): Write a function m-file (velocity.m) that, given u , q , m 0 , and t, computes and returns v . Have your function generate an error if qt is greater than or equal to m 0 . Part II (7 marks): The steps required to solve this part should be placed in a script m-file (script.m). Assume that u = 2000 m/s, m
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: = 150000 kg, and q = 2700 kg/s. ** Note ** Your are expected to make use of the function you produced in part I instead of re-implementing the equation within your script file. If you find it necessary to re-implement the equation you may do so but students who do this will not earn full marks. i) Produce two plots (figures 1 and 2) of v vs t for t from 0s to 50s. Produce one plot using function fplot and the other using function plot ). ii) At what time will the rocket attain a velocity of 750 m/s? Precisely determine the answer (graphical solutions are NOT acceptable) and output it using function fprintf ....
View Full Document

{[ snackBarMessage ]}

Ask a homework question - tutors are online