Powell's dog leg method - fitting sinus function

I present the fitting of the sinus function based on Powell's dog leg method.

You are now following this Submission

Here, I present Powell's dog leg method that is applied to the fitting of sinusoidal 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 sinusoidal 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 (2026). Powell's dog leg method - fitting sinus function (https://www.mathworks.com/matlabcentral/fileexchange/106590-powell-s-dog-leg-method-fitting-sinus-function), MATLAB Central File Exchange. Retrieved .

General Information

MATLAB Release Compatibility

  • Compatible with R2018a

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.0.1

The clarity of algorithm was improved.

1.0.0