rate_a - 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_a" % m-file to perform least-squares regression % x(1)=k; x(2)=Ke; x(3)=Ka % function f=rate_a(x) f global ra pe pea ph2 n
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: g f=0; f for i=1:n f=f+(ra(i)-(x(1)*pe(i)*ph2(i))/(1+x(3)*pea(i)+x(2)*pe(i)))^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