How to perform a minimization between two spectra using a nonlinear least square function?
조회 수: 1 (최근 30일)
이전 댓글 표시
Dear All,
I have two spectra together for comparison and I want to minimize the difference between them. The solver of the objective function is nonliear least square (in this filed, Levenberg-Marquardt is the best method). Here is the graph dipecting the simulated and measured data. The data is attached and here is the lines that call them:
load Observed.txt;
wavelength1=Observed(:,1);
total1=Observed(:,2);
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
load Measured.txt;
wavelength2=Measured(:,1);
total2=Measured(:,2);
The way I understand it is that a nonlinear least square provides me with the best fit. How does someone generate the fit? Please execuse my ingnorance over this issue as I am stumbling with it for the past month and I am realy keen to understand it. I am using this data to get familiar and really understand the minimization concept and how is it implemented in Matlab so that I can apply it in the rest of the data.
Thank you very much for the help, guidance and time in advance
Cheers,
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/672173/image.png)
댓글 수: 0
답변 (0개)
참고 항목
카테고리
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!