Thread Subject: How to use Matlab to plot mean and standard deviation of a data set?

Subject: How to use Matlab to plot mean and standard deviation of a data set?

From: Aaron Yang

Date: 2 Jul, 2009 11:34:01

Message: 1 of 3

How to use Matlab to plot mean and standard deviation of a data set please? I do not want to use "boxplot" because it is too complicated for my data display.

I just want to display a mean value with standard deviation. Basically, the plot should like a vertical line with a dot at the center denotes the mean value, and two short horizontal lines denote the standard devition. Any help will be greatly appreciate:-)


Thanks.

Subject: How to use Matlab to plot mean and standard deviation of a data set?

From: us

Date: 2 Jul, 2009 11:59:02

Message: 2 of 3

"Aaron Yang" <samggyy@gmail.com> wrote in message <h2i5v9$mls$1@fred.mathworks.com>...
> How to use Matlab to plot mean and standard deviation of a data set please? I do not want to use "boxplot" because it is too complicated for my data display.
>
> I just want to display a mean value with standard deviation. Basically, the plot should like a vertical line with a dot at the center denotes the mean value, and two short horizontal lines denote the standard devition. Any help will be greatly appreciate:-)
>
>
> Thanks.

a hint:

     help errorbar;

us

Subject: How to use Matlab to plot mean and standard deviation of a data set?

From: MRR

Date: 9 Jul, 2009 11:26:01

Message: 3 of 3

"Aaron Yang" <samggyy@gmail.com> wrote in message <h2i5v9$mls$1@fred.mathworks.com>...
> How to use Matlab to plot mean and standard deviation of a data set please? I do not want to use "boxplot" because it is too complicated for my data display.
>
> I just want to display a mean value with standard deviation. Basically, the plot should like a vertical line with a dot at the center denotes the mean value, and two short horizontal lines denote the standard devition. Any help will be greatly appreciate:-)
>
>
> Thanks.

If i understood you i think it is easy.
Put your data in vector or columns. After that use the commands var() and std. Once you have it, just use plot command.

Regards,

Tags for this Thread

Everyone's Tags:

Add a New Tag:

Separated by commas
Ex.: root locus, bode

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.

Tag Activity for This Thread
Tag Applied By Date/Time
reference us 2 Jul, 2009 08:04:03
rssFeed for this Thread

Contact us at files@mathworks.com