Time-Domain to Magnitude and Phase
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
Platform Compatibility
Windows macOS LinuxCategories
- Control Systems > Control System Toolbox > Linear Analysis > Time and Frequency Domain Analysis > Frequency-Domain Analysis >
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.
Version | Published | Release Notes | |
---|---|---|---|
1.0.0.0 |