Scaling Objective Function for Widely Varying Parameters: Data Fitting with lsqcurvefit
이전 댓글 표시
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.
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Optimization에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
