Hi,
I want to color the individual points of this errorbar plot. I tried doing it in the following way but it doesn't work.
means=[1 1 2 3 4];standarddeviation=[0.1 0.2 0.2 0.3 0.35];color=['b' 'm' 'b' 'm' 'b']; errorbar(means, standarddeviation,'.','MarkerEdgeColor', color,'MarkerSize',20),;
I also tried plotting it in a for loop but that doesn't work at all.
means=[1 1 2 3 4];standarddeviation=[0.1 0.2 0.2 0.3 0.35];color=['m','m','k','g','r'];for i = 1:numel(means) errorbar(means(i), standarddeviation(i),'.'),'MarkerEdgeColor', color(i),; hold onend
Can someone help me fix this?
Best Answer