How to do curve fitting to a custom function with 7 fitting parameters?
3 次查看(过去 30 天)
显示 更早的评论
Hi:)
I have 11 sets of measured data (x:Delta_n, y:Tau_base) for different temperatures, I want to fit them using an custom function 'Seff_model1_temp3' (y: TauEff and x: Delta_n). I have 7 fitting parameters (see highlighted part in the code).
By varing temperature (T), I want to fit all 11 sets of data using same fitting paramters.

Can someone help me with the fitting? prefer to use nonlinear least squares. I want to set the upper and lower limit for each fitting parameters as well!
Thanks in advance!!!!
1 个评论
Star Strider
2020-5-26
You will have to code the objective function yourself. See Anonymous Functions for one way to do that.
Also see the documentation for the optimisation function you want to use, so you can write the function correctly for it.
回答(1 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Get Started with Curve Fitting Toolbox 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!