The present code is a Matlab function that provides a measurement of the amplitude ratio between two signals with one and the same shape (e.g., both signals are sine-waves). The main purpose is assisting the measurement of a frequency response of a two-port circuit. The amplitude ratio measurement is based on a Discrete Fourier Transform (DFT) of the signals and a Maximum Likelihood Estimation (MLE) of their amplitudes. The method is highly noise resistive.
Two examples are given in order to clarify the usage of the function. The input and output arguments are given in the beginning of the code.
The code is based on the theory described in:
 D. Rife, R. Boorstyn. Single-tone parameter estimation from discrete-time observations. IEEE Trans. Inform. Theory, Vol. IT–20, pp. 591-598, Sept. 1974.
Hristo Zhivomirov (2022). Amplitude Ratio Measurement with Matlab (https://www.mathworks.com/matlabcentral/fileexchange/50559-amplitude-ratio-measurement-with-matlab), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform CompatibilityWindows macOS Linux
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!