The following was measured for the time response of the Minute Ventilation (in liters/minute) for placebo, intravenous morphine, and intrathecal morphine treatments.
Hours
|
Placebo
|
Intravenous
|
Intrathecal
|
0
|
38
|
34
|
30
|
1
|
35
|
19
|
23.5
|
2
|
42
|
16
|
20
|
4
|
35.5
|
16
|
13.5
|
6
|
35
|
17
|
10
|
8
|
34.5
|
20
|
11
|
10
|
37.5
|
24
|
13
|
12
|
41
|
30
|
19.5
|
One method of reporting these results is to compute the "Overall Effect" which is the area under the curve divided by the total time interval (weighted average).
Compute the overall effect using Matlab for placebo, intravenous, and intrathecal morphine treatments using (i) trapezoidal quadrature method and (ii) Simpson's method. The integral should be separated into two different integrals, since from t=0-2 hours the panel width is 1 hour and from 2-12 hours the panel width is 2 hours.