Standard deviation across plots
이전 댓글 표시

I am trying to do an analysis where I would need to analyse the consistency across trials: refers to the first picture below. Each line represents one trial. There are 9 to 11 trials altogether. I want to plot the average value between the lines as well as plotting and calculating the standard deviation across trial (so that there will be one average trial value and shaded grey area which represent the distribution of data).
Any idea on how to do this?
댓글 수: 4
i am not sure this is what you want but you have errorbar.m function that show the std in each point (not an area).
If you want area you can use area.m funstion by calculate the mean and the std and then you will have 3 points set. mean-std, std and std (area is acumulative, so mean is (mean-std)+std).
Sharah
2016년 2월 15일
Yona
2016년 2월 15일
The average of all plot is 1 plot.
if you have
x1 = [1 2 4];
x2 = [1.1 1.9 3.7];
x3 = [0.9 1.9 3.85];
the average is: [1 1.9333 3.85];
the std is: [0.1 0.577 0.15];
Sharah
2016년 2월 15일
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 2-D and 3-D Plots에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!