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 wantnumdev = floor((mean(S,2)-min(S,[],2))./std(S,[],2)); Related SolutionsMATLAB: Random generation and ploting its pdf n=randi(101,1000,1)-1;hist(n,101)m=mean(n),s=std(n) MATLAB: Calculate 2 standard deviations Hi Chris, for a matrix of datax = randn(10,4);mean(x)+2*std(x)mean(x)-2*std(x)gives the sample means of the columns plus/minus 2 times the standard deviation. The question is whether you really want the sample standard deviation here, or the standard error of the mean.Wayne Related Question
Best Answer