Function to calculate the dissolved oxygen
0001 function yhat=oxygen_fit_none(beta,x) 0002 % Function to calculate the dissolved oxygen 0003 % 0004 b1=beta(1); 0005 b2=beta(2); 0006 b3=beta(3); 0007 b4=beta(4); 0008 b5=beta(5); 0009 x1=x(:,1); 0010 x2=x(:,2); 0011 x3=x(:,3); 0012 x4=x(:,4); 0013 yhat=((b1*(x1+b2))+(b3*exp(-0.03*x3))).*exp(b4.*x3).*x2.*exp(b5.*x4);