function f = expeval2(alpha) %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % function f = expeval2(alpha) % Given alpha, we calculate the vector of % residuals f in the fit of the data (t,y) by the % function % ytest = sum x(i) exp(alpha(i) t) % where the parameters x(i) are determined by solving % the linear least squares problem using the function % expfit. % % expeval2.m Dianne P. O'Leary 02/04 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% global y t [x,f] = expfit(alpha,t,y);