I have an observed curve. By guessing the values of the constant A and B in the equation I can get a calculated curve. i want to optimize the calculated and observed curve such that I can get the precise values of A and B. How do I do it?
1 view (last 30 days)
Show older comments
dmdt=(pil*(10^(A+B/T))*sqrt(pressure_900))/lnreri
I have experimentally calculated dmdt versus time and got a decay plot. I already have the values of every other variable in the above equation except for A and B.
I want to guess an initial value for A and B and plot my calculated dmdt versus time.
Is there a way to optimize the calculated and observed cure such that I can find the values of A and B if I have multiple curves?
0 Comments
Accepted Answer
Star Strider
on 19 Jan 2016
If you have the Statistics Toolbox, use the nlinfit function, or the Optimization Toolbox lsqcurvefit function.
9 Comments
Star Strider
on 27 Jan 2016
My pleasure.
I do not have the Curve Fitting Toolbox, so I cannot help you with it. I would have to know the function you want to fit.
More Answers (0)
See Also
Categories
Find more on Least Squares in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!