Time-Domain to Magnitude and Phase

Numerical inference of magnitude and phase information of streaming time domain input and output wav
6.3K Downloads
Updated 18 Feb 2003

No License

This s-function captures a sample of two (ideally oscillatory) signals and, using a FFT, computed the amplitude ratio and phase difference between the two signals during a simulation.

This is intended to provide a way to numerically generate nonlinear equivalents of Bode plots for either linear or nonlinear systems. By choosing a frequency of interest (e.g. an input frequency you select), you can compute the amplitude and phase of another signal, like the output of a nonlinear control system, with respect to the input. Bode plots are defined and available only for steady-state linear systems with transfer functions. This function allows you to numerically generate similar plots (after your system reaches dynamic steady state) for linerr or nonlinear systems.

Cite As

Marc Compere (2024). Time-Domain to Magnitude and Phase (https://www.mathworks.com/matlabcentral/fileexchange/3021-time-domain-to-magnitude-and-phase), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R13
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes
1.0.0.0