sfreqs

Return vector of frequencies

Syntax

   freqs = sfreqs(fres,fs)

Arguments

See also Common variable names and data structures.

input

   fres       frequency resolution
   fs         sample rate (default: 2*pi)

output

   freqs      vector of frequencies

Description

Returns (column) vector freqs of fres+1 equally spaced frequencies on [0,fs/2], where fs is a sample rate (so fs/2 is the Nyqvist frequency). If a sample rate is not supplied (default), frequencies are returned over the normalised range [0 pi].

See also

All spectral routines