Averaging data
이전 댓글 표시
Hello,
I'm having difficult time trying to average my data. I have data which look like this
time1 = [0.14 0.99 1.67 2.45 3.10 3.70 4.24 5.00]
res1 = [4 6 2 9 1 0 4 7]
time2 = [0.11 0.69 1.00 1.45 1.66 2.04 2.24 2.99 3.11 3.43 4.25
4.55 5.00]
res2 = [8 1 5 3 7 1 3 10 9 5 3 2 1]
time3 = [0.09 0.33 1.13 1.44 2.10 2.70 3.24 4.00 4.80 5.00]
res3 = [0 3 4 7 2 6 3 4 9 8]
The period of time is always 5 min but there is different number of responses given during this time. These responses showing only a change at particular time and the value between time intervals is constant. I'd like to plot average of the data using a stairs function. Any help highly appreciated.
채택된 답변
추가 답변 (1개)
Marcel
2011년 8월 10일
0 개 추천
댓글 수: 4
Marcel
2011년 8월 12일
Oleg Komarov
2011년 8월 12일
Then create:
untime = 0:0.5:5
instead of untime = unique(...);
Marcel
2011년 8월 12일
Oleg Komarov
2011년 8월 12일
What behaviour did you observe with error bar that didn't satisfy you?
카테고리
도움말 센터 및 File Exchange에서 Data Distribution Plots에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!