From: Helen on
Is there a simple way (i.e., matlab-native) to put error bars on a bar plot? There certainly should be. In 1988 Cricket Graph for MacOS gave a choice of 4-5 different ways to do errorbars (percentage of the plotted point, from a file, etc.) on any kind of plot. Elegant, nice.

So far I've found nothing obvious in the matlab Help doc, and web search turns up m-files submitted by users but nothing native.

Thanks!
Helen
From: Lorenzo Guerrasio on
"Helen " <helenfromsun(a)gmail.com> wrote in message <hleui0$8lp$1(a)fred.mathworks.com>...
> Is there a simple way (i.e., matlab-native) to put error bars on a bar plot? There certainly should be. In 1988 Cricket Graph for MacOS gave a choice of 4-5 different ways to do errorbars (percentage of the plotted point, from a file, etc.) on any kind of plot. Elegant, nice.
>
> So far I've found nothing obvious in the matlab Help doc, and web search turns up m-files submitted by users but nothing native.
>
> Thanks!
> Helen

I'm sorry,I cannot understand what you mean with "matlab-native".On the FEX you'll find very efficient algorithm for plotting bar with errors. If you don't want to use them, the easiest way I can think of is something like
[N,X]=hist(rand(1000,1));
bar(X,N)
hold on,errorbar(X,N,randn(size(N)),'color','r','linestyle','none')
I'm not really sure if I got your point,thou