I am trying to do the following. I have two column vectors:
I am trying to obtain a Cf column vector for the corresponding Cp column vector peak and below. So Cp peaks at 0.99 and I am trying to obtain the values for Cf from the beginning of Cp until the peak of Cp. All of the values of Cp are less than the peak value.
I am also trying to obtain the last half of Cf for Cp after the peak until the end. So the last half would be: