Scaling Objective Function for Widely Varying Parameters: Data Fitting with lsqcurvefit
Afficher commentaires plus anciens
I have am struggling to fit a dataset to a function which has fit parameters may orders of magnitude different from each other. From what I can tell, I need to scale the parameters inside the function so that there are meaningful changes to the output value when the fitting routine tweaks the parameters looking for optimal values. I have tried scaling the p(1) parameter inside the function to fit, "PAnumberSpectra", but have not yet found a method that works. Could someone provide direction?
My code/data are attached below. Sorry it's long, but it should be self-contained, and suffient to run by itself. I am using Matlab R2019B on Windows 10.
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Get Started with Curve Fitting Toolbox dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
