Harmonic Analysis package
Introduction
The harmonic analysis package uses FFT to estimate parameters of an input signal. The package provides two main functions:
harm_analysis: for simulations with an injected tone, returning SNR, THDN, Noise, etc.spec_analysis: for cases without an injected tone, that auto-detects DC, tones, and noise from the spectrum.
See usage for examples.
Installation
Installing it is pretty easy: