Solving 3 integral equations to obtain 3 parameters appearing in integrands

1 次查看(过去 30 天)
I have a series of integral equations:
Where f, g, and h are nonlinear functions of a1, a2, a3 and y. H (the upper limit of integrals) as well as m, n, and p are known. I would like to obtain the values of parameters a1, a2 and a3 using fsolve.
  1 个评论
Will Nitsch
Will Nitsch 2017-5-3
It's hard to say if something like this will work universally since I don't know the nature of your functions, but you can do something like this with the symbolic math toolbox:
syms a1 a2 a3 y
f = a1+a2.*y+a3.*y.^2;
g = a1.*y+a2+a3.*y.^2;
h = a1.*y.^2+a2.*y+a3;
H = 5;
m = int(f,y,0,H)
n = int(g,y,0,H)
p = int(int(h,y,0,y),y,0,H)
answer = solve(m==1,n==2,p==3)
I set m, n and p equal to the equations themselves, then in the solve argument I solve for them to be equal to some known values. In this case, it would translate such that your m = 1, n = 2 and p = 3. The functions f, g and h are defined arbitrarily.
I think you could also accomplish this with the '\' operator in base MATLAB if you knew values of y as well.

请先登录,再进行评论。

回答(0 个)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by