Get the frequency vector at which the short-time FFT is computed.

Create a dsp.STFT object. The STFT object is defined with a 'twosided' frequency range. The frequency vector is defined by the interval [0 Fs] and has the same length as the FFT length, where Fs is the input sample rate.

Short-time FFT object whose frequency vector is computed, specified as dsp.STFT
object.

Fs — Input sample rate positive scalar

Input sample rate, specified as a real positive scalar. The STFT frequencies are
computed in the interval determined by Fs. For more details, see
freq.

Frequencies at which the short-time FFT is computed, returned as a column vector.

The length of the frequency vector is determined by
the FrequencyRange
property and the FFTLength.

If you set FrequencyRange to
'onesided' and FFTlength is even, the
frequency vector is of length (FFTlength/2)+1.
If you set the FrequencyRange to 'onesided' and
FFTlength is odd, the frequency vector is of length
(FFTlength+1)/2.

The frequencies cover the interval [0, Fs/2]. When
Fs is not specified, the frequencies range from [0, π].

If you set the FrequencyRange
property to 'twosided', the length of the frequency vector is equal
to the value you specify in the FFTlength property. The frequencies
cover the interval [0, Fs]. When Fs is not
specified, the frequencies range from [0, 2π].

Data Types: single | double

Extended Capabilities

C/C++ Code Generation Generate C and C++ code using MATLAB® Coder™.

You can also select a web site from the following list:

How to Get Best Site Performance

Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.