I am new to using MATLAB, and i need to plot experimental data, but cant manage to plot error bars. say I have the data set, x = 1, y = 1,2,3 – x = 2, y = 4, 5, 6, etc. i want to plot a graph of x against the mean of y at that point, (so in the first case, x = 1, ybar = 2, etc), but i need to add standard error bars that are calculated using the variation in y for each given point of x. is there any way of doing this?
Thanks
Best Answer