Sinefit for multitones

Generate and fit a multitone.

You are now following this Submission

The main functions:

1. ntonemaker.m: Generate real or complex multitone suited for a least-squares fit.

2. nsinefit.m: Perform the least-squares fit for a multitone.

Practical usage would be fitting a multitone measurement result.

The script nsinefit_demo.m provides some usage examples with added noise/distortion. The demo uses ntone_add_err.m for adding noise/distortion and ntone_wini to add error to the initial frequencies.

More info:
Marko Neitola, "Practical Stimulus Design for a Multi-Tone Fit," 2019 IEEE Nordic Circuits and Systems Conference (NORCAS): NORCHIP and International Symposium of System-on-Chip (SoC), DOI: 10.1109/NORCHIP.2019.8906952, 29-30 Oct. 2019.

Cite As

Marko Neitola (2026). Sinefit for multitones (https://uk.mathworks.com/matlabcentral/fileexchange/72382-sinefit-for-multitones), MATLAB Central File Exchange. Retrieved .

Tags

Add Tags

Add the first tag.

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

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

Updates mostly in nsinefit.m:
1. Fitting multiple measurements
- improved the code and added mode help information
2. The number if iterations will be determined by the user.

1.0.0