MATLAB Answers

fitting to a integral function

4 views (last 30 days)
Jason Ngo
Jason Ngo on 25 Mar 2020
Commented: darova on 25 Mar 2020
I have x and y data and im trying to fit to an integral equation and obtain the parameters x(1), x(2), and x(3)
This is the fitting equation
(1-(6*x(1))/(pi*sqrt(x(2))))*int(((((x(3)*cos(x(3))-sin(x(3)))^2)*exp(-1*fittingx))/((x(3)^2)*((sin(x(3)))^2)+x(2)*((x(1)/x(2))*(x(3)*cos(x(3))-sin(x(3)))+sin(x(3)))^2))
The integral is from 0 to infinity d(x(3))
Thanks!

  1 Comment

darova
darova on 25 Mar 2020
What about fit or lsqcurvefit?

Sign in to comment.

Answers (0)

Community Treasure Hunt

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

Start Hunting!

Translated by