Standard Deviation

Hi, I have S=[2 4 4 4 5 5 7 9]; can any one tell me how can I count and plot standard deviation in this values?

2 件のコメント

Image Analyst
Image Analyst 2011 年 9 月 28 日
Sorry, no. Not until you supply more info on what you mean, like why you expect more than one standard deviation from that set of observations.
Firoz Alam
Firoz Alam 2011 年 9 月 29 日
or if the data set is s = [1:5; 6:10; 11:15], what will b the Std and std plot plz ? each row represent freq and column measurement valus... hope u undstd now

サインインしてコメントする。

 採用された回答

Walter Roberson
Walter Roberson 2011 年 9 月 29 日

0 投票

numdev = floor((mean(S)-min(S))./std(S));
Determining the position of each standard deviation and plotting is left as a homework exercise.
Though possibly you want
numdev = floor((mean(S,2)-min(S,[],2))./std(S,[],2));

4 件のコメント

Firoz Alam
Firoz Alam 2011 年 9 月 29 日
@Walter - its generate one number only. hoe can I plot that? can u plz come more details ?
Walter Roberson
Walter Roberson 2011 年 9 月 29 日
The one number it generates is the number of standard deviations that "fit" in to the actual range of the data. There are always an equal number of standard deviations around the mean value. If S is one standard deviation,
mean - 3 * S, mean - 2 * S, mean - S, mean, mean + S, mean + 2 * S, mean + 3 * S
or as appropriate: the above would be for numdev of 3.
Firoz Alam
Firoz Alam 2011 年 9 月 30 日
thnx :)
Shivakumar
Shivakumar 2013 年 9 月 25 日
Thank you. I was helped by the answer.

サインインしてコメントする。

その他の回答 (1 件)

the cyclist
the cyclist 2011 年 9 月 29 日

0 投票

The standard deviation of the values in S can be calculated with the std() command:
>> std(S)
I'm not sure what you mean by plotting that standard deviation.

3 件のコメント

Firoz Alam
Firoz Alam 2011 年 9 月 29 日
Sir, I know this one but I need to plot ! :(
the cyclist
the cyclist 2011 年 9 月 29 日
Sorry, but I am very confused. The standard deviation is one number. What exactly do you want to plot? What are you trying to do, see, or understand about that set of numbers by plotting? Type "help plot" for help on one simple plotting command.
Firoz Alam
Firoz Alam 2011 年 9 月 30 日
its done ! thnx :)

サインインしてコメントする。

カテゴリ

タグ

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by