solveWaveFFT

Performs fast fourier transform on wave elevation time-series and outputs dominant frequencies & corrosponding power spectrum values.

You are now following this Submission

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:
  1. eta – wave elevation time series
  2. Fs – sampling frequency
  3. Units – toggle (1: Hz | 2: rads/s)
  4. Peaks – number of peaks of interest from transform
Outputs:
  1. Ap – amplitude of peaks
  2. fp – frequency value of transform peaks, in units specified by input 3.

Cite As

Ian Ammerman (2026). solveWaveFFT (https://ch.mathworks.com/matlabcentral/fileexchange/127808-solvewavefft), MATLAB Central File Exchange. Retrieved .

Tags

Add Tags

Add the first tag.

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
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