Documentation

# bandedgeFrequencies

Compute the bandedge frequencies

## Syntax

``w = bandedgeFrequencies(obj)``
``f = bandedgeFrequencies(obj,Fs)``

## Description

example

````w = bandedgeFrequencies(obj)` returns a vector of normalized frequencies, `w`, containing the bandedge frequencies between adjacent bandpass filters in the `dsp.Channelizer` System object™.```

example

````f = bandedgeFrequencies(obj,Fs)` returns a vector of bandedge frequencies in Hz, using the sample rate `Fs`.```

## Examples

collapse all

Compute the normalized bandedge frequencies of the bandpass filters in a channelizer using the `bandedgeFrequencies` function.

```channelizer = dsp.Channelizer; w = bandedgeFrequencies(channelizer)```
```w = 1×8 -2.7489 -1.9635 -1.1781 -0.3927 0.3927 1.1781 1.9635 2.7489 ```

To compute the frequencies in Hz, pass a sampling frequency, Fs.

`$f=\left(\omega /2\pi \right)×Fs$`

where:

• f is frequency in Hz.

• $\omega$ is frequency in radians.

Here, the sampling frequency is 44,100 Hz.

`f = bandedgeFrequencies(channelizer,44100)`
```f = 1×8 104 × -1.9294 -1.3781 -0.8269 -0.2756 0.2756 0.8269 1.3781 1.9294 ```

## Input Arguments

collapse all

Input filter, specified as a `dsp.Channelizer` System object.

Sample rate used to compute the bandedge frequencies in Hz, specified as a positive scalar.

Data Types: `single` | `double` | `int8` | `int16` | `int32` | `int64` | `uint8` | `uint16` | `uint32` | `uint64`

## Output Arguments

collapse all

Normalized frequencies containing the bandedge frequencies between adjacent bandpass filters in the channelizer, returned as a row vector. The length of the vector equals the number of frequency bands.

Data Types: `double`

Bandedge frequencies in Hz, returned as a row vector. The length of the vector equals the number of frequency bands. To return the frequencies in Hz, input the sample rate, `Fs`. Frequency in Hz is given by [w/(2π)]×Fs, where w is the normalized frequency in rad/sample, and Fs is the sampling rate in Hz.

Data Types: `double`

Watch now