rate_d - f global ra pe pea ph2 n g f=0; f for i=1:n

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
% "rate_d" % m-file to perform least-squares regression % x(1)=k; x(2)=a; x(3)=b; % function f=rate_d(x)
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: f global ra pe pea ph2 n g f=0; f for i=1:n f=f+(ra(i)-x(1)*pe(i)^(x(2))*ph2(i)^(x(3)))^2; end...
View Full Document

This note was uploaded on 09/02/2011 for the course CHEM 102 taught by Professor Kmn during the Spring '11 term at Babson College.

Ask a homework question - tutors are online