Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
Barplot with standard deviation

Subject: Barplot with standard deviation

From: Jesper Lauridsen

Date: 28 Sep, 2009 10:35:05

Message: 1 of 2

Example:

y_all=[10 23 40 50 60]

Std=[2 3 6 7 9]

How do I make a bar plot also showing the standard deviation Std:

bar(y_all) ????



Thanks

Subject: Barplot with standard deviation

From: Dave Brackett

Date: 28 Sep, 2009 16:09:03

Message: 2 of 2

"Jesper Lauridsen" <jesperholst_5@hotmail.com> wrote in message <h9q3gp$o2j$1@fred.mathworks.com>...
> Example:
>
> y_all=[10 23 40 50 60]
>
> Std=[2 3 6 7 9]
>
> How do I make a bar plot also showing the standard deviation Std:
>
> bar(y_all) ????
>
>
>
> Thanks

You should be able to achieve what you want using this submission on the file exchange http://www.mathworks.com/matlabcentral/fileexchange/10803

Replace the error bar limits with your standard deviation values.

Tags for this Thread

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us