Powell's dog leg method - fitting cosinus function
Version 1.0.1 (2.81 KB) by
Karol Vegso
I present the fitting of the cosinus function based on Powell's dog leg method.
Here, I present Powell's dog leg method that is applied to the fitting of cosinus function. The general algorithm was taken from document "METHODS FOR NON-LINEAR LEAST SQUARES PROBLEMS" written by authors K. Madsen, H.B. Nielsen, O. Tingleff (Technical University of Denmark). The principles and function of Powell's dog leg method are thoroughly explained in this document. I apply general Powell's dog leg algorithm to cosinus function. In order to change the function, you need to rewrite Jacobian matrix, which contains derivatives according to the fitting parameters. The presented algorithm is using mostly Matlab and equation solver Solve from Symbolic Math Toolbox. The solver is used to calculate step in Powell's dog leg method. The fitting parameters are amplitude, phase and offset.
Cite As
Karol Vegso (2024). Powell's dog leg method - fitting cosinus function (https://www.mathworks.com/matlabcentral/fileexchange/106595-powell-s-dog-leg-method-fitting-cosinus-function), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R2021b
Compatible with R2018a
Platform Compatibility
Windows macOS LinuxTags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.