https://www.mathworks.com/matlabcentral/answers/10428-standard-deviation-and-mean

 

https://www.mathworks.com/help/matlab/ref/errorbar.html

 

Hello everybody,

I have 36 values of mean and their standard deviation. 12 values falls between 38 to 45, another 12 values falls between 53 to 60 and another 12 values fall between70 to 75. I just want to show in a graph clearly the mean values and their standard deviation. I tried so many but none of them are really clear bcoz, I have values like 43.77, 43.10, 43.5... some close values.. how can I do that.. help me

 

 

----------------------------------------------------------

 

You can use errorbar:

% The data

Y = [rand(12,1)*7 + 35; rand(12,1)*7 + 53; rand(12,1)*5 + 70];

% The standard deviations

E = rand(36,1)*10 + 3;

% Mean values with error bars

errorbar(Y,E,'x')

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

'Matlab > Source Code' 카테고리의 다른 글

Top 10 most popular MATLAB & Simulink file downloads from last year  (0) 2017.03.18
random forest using matlab  (0) 2017.03.12
Some Matlab Code  (0) 2017.03.07
matlab dist function  (0) 2017.01.17
matlab de2bi source code  (0) 2017.01.17
Posted by uniqueone
,