solveWaveFFT
Version 1.1.2 (1,73 KB) von
Ian Ammerman
Performs fast fourier transform on wave elevation time-series and outputs dominant frequencies & corrosponding power spectrum values.
Note: Description accessible with Matlab's built-in "help" function.
The function solveWaveFFT(eta,Fs,units,peaks) computes and plots the 1-sided spectrum from the fast fourier transform of a given time series signal (eta). This function utilizes Matlab's built-in fft function.
Inputs:
- eta – wave elevation time series
- Fs – sampling frequency
- Units – toggle (1: Hz | 2: rads/s)
- Peaks – number of peaks of interest from transform
Outputs:
- Ap – amplitude of peaks
- fp – frequency value of transform peaks, in units specified by input 3.
Zitieren als
Ian Ammerman (2025). solveWaveFFT (https://de.mathworks.com/matlabcentral/fileexchange/127808-solvewavefft), MATLAB Central File Exchange. Abgerufen.
Kompatibilität der MATLAB-Version
Erstellt mit
R2023a
Kompatibel mit allen Versionen
Plattform-Kompatibilität
Windows macOS LinuxTags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Live Editor erkunden
Erstellen Sie Skripte mit Code, Ausgabe und formatiertem Text in einem einzigen ausführbaren Dokument.
| Version | Veröffentlicht | Versionshinweise | |
|---|---|---|---|
| 1.1.2 | Updated number of peaks to consider when ranking to improve accuracy for complex wave environments. |
||
| 1.1.1 | Bug fixes |
||
| 1.1.0 | Corrected function to output peaks in descending order of magnitude. |
||
| 1.0.0 |
