avm99963 | 7ca4571 | 2021-01-30 19:54:32 +0100 | [diff] [blame] | 1 | M = dlmread('../data/refredant_integration.dat'); |
2 | |||||
3 | d = @(t) (1.370e-06*t^2 + 1.217e-04*t -2.173e+00); | ||||
4 | |||||
5 | x = M(:, 1); | ||||
6 | y = M(:, 2); | ||||
7 | |||||
8 | for i = 1:size(y, 1) | ||||
9 | y(i) = y(i) - d(x(i)); | ||||
10 | end | ||||
11 | |||||
12 | trapz(x, y) |