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)
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?

Accepted Answer

Star Strider
Star Strider on 19 Jan 2016
If you have the Statistics Toolbox, use the nlinfit function, or the Optimization Toolbox lsqcurvefit function.
  9 Comments
AluAl
AluAl on 27 Jan 2016
Thank you again. I was able to do it with just a single value for 'pressure_900'. I have another related question,I have the experimental data, where more sets of data of the same process(distance versus temperature) were collected. Now I would like to fit curve (probably with sumofsines) in Matlab, which would be optimized to all sets of data.
I know how to fit curve with “Matlab Curve Fitting Tool” to one data set, but I don’t know how to do it with more sets.
I want to do it simultaneously for all the data sets so that it produces one optimized model.
Thank you in advance!!
My data is attached!
Star Strider
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.

Sign in to comment.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!