Write a function that takes as input n observations of peak streamflow
and exceedance probabilities
expressed as percentages and returns the flows
corresponding to the probabilities.
Use the empirical method of frequency analysis. Sort the observed flows in decreasing order and assign a rank m (e.g., the highest flow has
). If a flow occurs multiple times, assign to that flow the average of the ranks attached to the multiple occurrences. Then compute the exceedance probabilities (in percent) with
. Compute the flows corresponding to the requested exceedance probabilities with linear interpolation and return NaN for any probabilities that fall outside the range.
Solution Stats
Solution Comments
Show comments
Loading...
Problem Recent Solvers5
Suggested Problems
-
1781 Solvers
-
36 Solvers
-
Assign numerical values to a structure with 1 field
35 Solvers
-
Construct an index vector from two input vectors in vectorized fashion
460 Solvers
-
Create logical matrix with a specific row and column sums
349 Solvers
More from this Author323
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!