Question: We know that the height is randomly distributed and can be mod - elled with an exponential distribution with a mean of 0 . 8

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
or consistent results
Simulate a year's worth of daily heights
Hence, calculate a year's worth daily river flows.
Calculate the expected mean daily river flow using your sim-
ulated data.
For this section, you will need to write a script and submit it to
matlab GRader. A template to ensure that it works fine is given
below, this is also on MAtlaB grader - see link in canvas.K = ;
L = ;
H}=\mathrm{ ;
% We will simulate one years worth of data
rng(2022)% Set seed to repeatable.
H}=\mathrm{ ;
% Next we calculate the associated river water flows.
Q = calculateRiverFlow(L, K, H);
% Calculate mean river flow
meanFlow = ;probFlood = ;
We know that the height is randomly distributed

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!