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
Platform Compatibility
Windows macOS LinuxCategories
Tags
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.