function yhat=oxygen_fit_poly2(beta,x)
%OXYGEN_FIT_POLY2 - dissolved oxygen calculation (2-d poly fit)

% $Revision: 1.7 $
% $Date: 2008/04/09 13:51:02 $
% $Id: oxygen_fit_poly2.m,v 1.7 2008/04/09 13:51:02 duncombe Exp duncombe $

%
b1=beta(1);
b2=beta(2);
b3=beta(3);
b4=beta(4);
b5=beta(5);
b6=beta(6);
b7=beta(7);
x1=x(:,1);
x2=x(:,2);
x3=x(:,3);
x4=x(:,4);
x5=x(:,5);
yhat=((b1*(x1+b2))+(b3*exp(-0.03*x3))+(b6*x5+b7*x5.^2)).*exp(b4.*x3).* ...
	x2.*exp(b5.*x4);

return;


