I would like to find the location of the change in an array. The arrays are ramp and hold, i e. they contain several identical values then start to increase and then become constant again. The increase rates are different in each array.They are plotted below:
I want to plot a vertical line at the end and begining of each constant section. Can you help me with that?