Question

MATLAB Using predicted values of rainfall, evaporation and water consumption, the urban engineer developed a model...

MATLAB

Using predicted values of rainfall, evaporation and water consumption, the urban engineer developed a model for the amount of water in the reservoir as a function of time as follows.

V(t)= 10^9 + 10^8 (1-e^(-t/100))-rt

where V is the amount of water represented by the litre, t is the time of day, r is the daily consumption rate of the city expressed by the litre/day. Create two user-defined functions. The first function uses the fzero function to define the usage function V(t). In the second function, the fzero function is used to calculate how long it takes to reduce the initial value of 10L(9)L by x percent. The inputs for the second function are x and r. Check the function for x=50 percent and r= 10^(7)L/day.

Homework Answers

Answer #1

Given : V(t)= 10^9 + 10^8 (1-e^(-t/100))-rt

Where ,V is the amount of water represented by the litre

t is the time of day

r is the daily consumption rate of the city expressed by the litre/day.

Code:

function t=watervolume(x,r)

V=@ (t) 10^9 + 10^8 * (1-exp (-t/100) ) - r * t ;

fun = @ (T) V(t) /10^9 * 100 - x;

t = fzero (fun , [0,150]);

end

Explanation : first function is private

In the second function fun we calculates root of non-linear function.

The inputs are gievn as

> x = 50;

> r=10^7;

> watervolume(x , r)

Output:54.183

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
Part I. Indicate whether true or false (T or F). ____ Storm water detention ponds typically...
Part I. Indicate whether true or false (T or F). ____ Storm water detention ponds typically are designed to regulate the outflow peak rate at or below a single target value, such as the pre-development (pre-land use change) peak runoff rate for a specified return period event. Detention storage alters the peak but not the volume of the outflow hydrograph. _____ Typical rating curves for weirs are concave upward. Typical rating curves for orifices are concave downward. ____ A sediment...
Using the model proposed by Lafley and Charan, analyze how Apigee was able to drive innovation....
Using the model proposed by Lafley and Charan, analyze how Apigee was able to drive innovation. case:    W17400 APIGEE: PEOPLE MANAGEMENT PRACTICES AND THE CHALLENGE OF GROWTH Ranjeet Nambudiri, S. Ramnarayan, and Catherine Xavier wrote this case solely to provide material for class discussion. The authors do not intend to illustrate either effective or ineffective handling of a managerial situation. The authors may have disguised certain names and other identifying information to protect confidentiality. This publication may not be...
1. What is an ISP (Integrated Service Provider) for supply chains? (1 point) A. A consultant...
1. What is an ISP (Integrated Service Provider) for supply chains? (1 point) A. A consultant agency which integrates the supply chain for companies B. A 2 PL or a 3PL, but not a 4PL C. A company supplying transportation and warehousing services D. A logistics service company specialized in suppling VAS (value added services) 2. What characterizes a 4 PL? (1 point) A. They are non-asset based and provides integrated services primarily supplied by asset based providers, for example...
Please answer the following Case analysis questions 1-How is New Balance performing compared to its primary...
Please answer the following Case analysis questions 1-How is New Balance performing compared to its primary rivals? How will the acquisition of Reebok by Adidas impact the structure of the athletic shoe industry? Is this likely to be favorable or unfavorable for New Balance? 2- What issues does New Balance management need to address? 3-What recommendations would you make to New Balance Management? What does New Balance need to do to continue to be successful? Should management continue to invest...
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT