% function accepts 1 double and 2 vectors of double % a611(#num_of_points, vector_a, vector_b) % number of datapoints in both vectors must be equal, % or else the result will not be correct % %exp.: % a=[0, 5, 10, 15, 20 ] % b=[1, 0.8811, 0.7366, 0.5430, 0.1698] % [a1,a2,a3,a4,a5]=a611(5,a,b) % a1 = -0.023780 % a2 = -0.026340 % a3 = -0.033810 % a4 = -0.019360 % a5 = -0.074640