function g =funp1(a);
[email=fa1=@(x)x.*exp(a(1).*x+a(2).*x.^2+a(3).*x.^3]fa1=@(x)x.*exp(a(1).*x+a(2).*x.^2+a(3).*x.^3[/email]);
[email=fa2=@(x)exp(a(1).*x+a(2).*x.^2+a(3).*x.^3]fa2=@(x)exp(a(1).*x+a(2).*x.^2+a(3).*x.^3[/email]);
f1 =quad(fa1,-0.025,-0.026)/quad(fa2,-0.025,-0.026)+0.0257;
fb1 [email==@(x)x.^2.*exp(a(1).*x+a(2).*x.^2+a(3).*x.^3]=@(x)x.^2.*exp(a(1).*x+a(2).*x.^2+a(3).*x.^3[/email]);
fb2 [email==@(x)exp(a(1).*x+a(2).*x.^2+a(3).*x.^3]=@(x)exp(a(1).*x+a(2).*x.^2+a(3).*x.^3[/email]);
f2 =quad(fb1,-0.025,-0.026)/quad(fb2,-0.025,-0.026)-0.00066058;
[email=fc1=@(x)x.^3.*exp(a(1).*x+a(2).*x.^2+a(3).*x.^3]fc1=@(x)x.^3.*exp(a(1).*x+a(2).*x.^2+a(3).*x.^3[/email]);
fc2 [email==@(x)exp(a(1).*x+a(2).*x.^2+a(3).*x.^3]=@(x)exp(a(1).*x+a(2).*x.^2+a(3).*x.^3[/email]);
f3 =quad(fc1,-0.025,-0.026)/quad(fc2,-0.025,-0.026)+0.00001698;
g =[f1;f2;f3];
a0 =[-0.1,0.1,0];
options =optimset('Display','iter','MaxFunEvals',400);
[a,fval] = fsolve(@funp1,a0,options)
Optimization terminated: first-order optimality is less than options.TolFun.
a =
0 0 0
fval =
1.0e-003 *
0.2000
-0.0102
0.0004 |