function yhat=oxygen_fit_poly2p(beta,x)
%OXYGEN_FIT_POLY2P - dissolved oxygen calculation (2-d poly fit, press dep)

% $Revision: 1.6 $
% $Date: 2008/02/18 19:39:09 $
% $Id: oxygen_fit_poly2p.m,v 1.6 2008/02/18 19:39:09 duncombe Exp duncombe $

%
b1=beta(1);
b2=beta(2);
b3=beta(3);
b4=beta(4);
b5=beta(5);
b6=beta(6);
b7=beta(7);
b8=beta(8);
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)+  ...
		(b8*x4)).*exp(b4.*x3).*x2.*exp(b5.*x4);
