AP-SCE/Mex/a612.m

11 lines
343 B
Matlab

% function accepts 1 double and 2 vectors of double
% a612(#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]
% a612(5,a,b)
% ans= -0.023780 -0.026340 -0.033810 -0.019360 -0.074640