Sinefit for multitones

Generate and fit a multitone.
24 Downloads
Updated 28 Nov 2019

View License

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 (2024). Sinefit for multitones (https://www.mathworks.com/matlabcentral/fileexchange/72382-sinefit-for-multitones), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2018b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Tags Add Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
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