Question: Please include a MATLAB function and a script thank you! 3 Waterflow function Write a function of the form I function Q = calculateRiverFlow(L, K,
Please include a MATLAB function and a script thank you!

3 Waterflow function Write a function of the form I function Q = calculateRiverFlow(L, K, H) 2 end that takes the values: L : length of weir, K : weir discharge coefficient, and H : height of water surface over weir - may be vector. You can check your function in MATLAB GRADER - see link in CanVAS. 4 Predicting mean river water flow We know that the height is randomly distributed and can be mod- elled with an exponential distribution with a mean / of 0.8 metres. Remember to set your seed 1. Simulate a year's worth of daily heights for consistent results 2. Hence, calculate a year's worth daily river flows. 3. Calculate the expected mean daily river flow using your sim- ulated data
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
