Question
Using Matlab! 1. Using estimates of rainfall, evaporation, and water consumption, the town engineer developed the following model of the water volume in the reservoir
Using Matlab!
1. Using estimates of rainfall, evaporation, and water consumption, the town engineer developed the following model of the water volume in the reservoir as a function of time
V(t)= 1e9 +1e8*(1-exp(-t/100))- r*t
Where V is the water volume in liters, t is time in days, and r is the towns consumption rate in liters per day. Write two user-defined functions. The first function should define function V(t) to evaluate V for any input of . The second function should use fzero to compute how long it will take for the water volume to decrease to x percent of its initial value of Liters. The inputs to the second function should be x and r. Test your functions for the case where x= 50 percent and r = 107 Liters/day.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started