Question

3. Apply MATLAB to the previous problem in order to answer the following: а. Plot h1, h2 and h3 as a function of time when the input is the unit

step function. Assume the initial conditions are h1 = 0, h2 = 10, and h2 = 5. Give all commands used to generate your plot. b. Plot the flows across each pipe as a function of time.

Fig: 1

Fig: 2

Fig: 3