MATLAB: 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 to do it

optimization

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?

Best Answer

If you have the Statistics Toolbox, use the nlinfit function, or the Optimization Toolbox lsqcurvefit function.