I have 3 data matrices (Flow, RowID, and nyears) and need to estimate maximum flow for each year.
The code I developed is below.
The output Qmax is shown below. But, I want to store the output (Qmax) in a cell or double array so the rows in 1st column of Qmax be 95, 2nd column 47, and so on the last column but my code does not do it.
Can somebody guide me?
Thanks in adavance.