I have a matrix of double numbers:
X = 1 2.11 2.32 1.93 4.01 2.0
I want to group this based on the first column value and list the second values as observations:
Result = [ 1 2.1 2.3 2.0 2 1.9 3 4.0];
How can I achieve this? And is this a good way of representing data if I need to calculate their standard errors and plot both observations and error bars on a plot? Any help will be appreciated! Thanks.
Best Answer