I have a table imported into Matlab.
The y column is first, then x.
I want the standard deviation and mean of the y values corresponding only to the x values that are the same. for example, the standard deviation and mean of the first column until line 16, because that is when the value changes in the second column. Then display them onto errors bars.
The graph outputs this, but I want to add errors bars indicating one standard deviation and the mean.