You could use the FFT to obtain a good initial guess of the sinusoidal frequency. See one such LsqFit example here.
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| Custom nonlinear curve fitting package? | 1 | 470 | September 2, 2023 | |
| [ANN] Package for sinusoidal regressions | 0 | 320 | March 7, 2023 | |
| Hello all. I've been trying to use `LsqFit` to fit a hyperbolic tangent function t | 2 | 1277 | February 20, 2021 | |
| Alternatives to LsqFit for nonlinear curve fitting? | 12 | 3320 | December 21, 2023 | |
| Julia vs GNU Octave for plot fitting / finding peaks | 16 | 4019 | July 1, 2020 |