Standard Deviation
15 次查看(过去 30 天)
显示 更早的评论
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
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.
采纳的回答
Walter Roberson
2011-9-29
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 个评论
更多回答(1 个)
the cyclist
2011-9-29
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 个评论
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.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Annotations 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!