fn_fftfrequencies

Contents

Syntax

ff = fn_fftfrequencies(data,fs[,'centered'])
[ff1 ff2] = fn_fftfrequencies(data,fs[,'centered[+shift]'])

Description

utility to get the vector of frequencies for which fft is computed on
data
Inputs:
- data    vector, or scalar (then it is the number of elements of the
          data)
          data can also be an array, in which case there are 2 outputs
- fs      sampling frequency (default=1)
- 'centered', 'center+shift'
          use these flag for getting the second half of the
          frequencies being negative frequencies rather than 'above-the-
          Niquist-limit' frequencies

Source

Thomas Deneux

Copyright 2007-2017