MATLAB: Standard Deviation

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?

Best Answer

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));
Related Question