# wlanChannelFrequency

Determine channel center frequency

Since R2022a

## Syntax

``fc = wlanChannelFrequency(channel,band)``

## Description

````fc = wlanChannelFrequency(channel,band)` calculates the center frequency of the WLAN channel number `channel` in the operating band `band`. For more information about IEEE® 802.11™ channel designations, see WLAN Radio Frequency Channels. For a detailed description of country-specific information, operating classes, and behavior limits, see Annex E of [1] and [2].```

example

## Examples

collapse all

Calculate the center frequency of channel 6 in the 2.4 GHz band.

```channel = 6; band = 2.4; fc = wlanChannelFrequency(channel,band)```
```fc = 2.4370e+09 ```

Calculate the center frequency of channels 37, 42, and 91 in the 6 GHz band.

```channel = [37 42 91]; band = 6; fc = wlanChannelFrequency(channel,band)```
```fc = 1×3 109 × 6.1350 6.1600 6.4050 ```

## Input Arguments

collapse all

Channel number, specified as one of these values.

• An integer or array of integers in the interval [1, 14] when you specify the `band` input as `2.4`

• An integer or array of integers in the interval [1, 200] when you specify the `band` input as `5`

• An integer or array of integers in the interval [1, 233] when you specify the `band` input as `6`

• An array of integers in the interval [1,233] when you specify the `band` input as an array of equal dimensions with entries equal to `2.4`, `5`, or `6`

Data Types: `double`

Operating band in GHz, specified as one of these values.

• One of the scalars `2.4`, `5`, or `6`

• An array of the scalars above when you specify the `channel` input as an array of equal dimensions with entries in the interval [1,233]

Data Types: `double`

## Output Arguments

collapse all

Channel center frequency, in Hz, returned as one of these values.

• A positive scalar when you specify the `channel` and `band` inputs as scalars

• An array of positive values when you specify the `channel` input as an array and the `band` input as a scalar. The entries of this output are the center frequencies of the channel numbers specified in the corresponding entries of the `channel` input. The frequency for each channel number is calculated in the operating band specified in the `band` input

• An array of positive values when you specify the `channel` and `band` inputs as arrays with equal dimensions. The entries of this output are the center frequencies of the channel numbers specified in the corresponding entries of the `channel` input. The frequency for each channel number is calculated in the operating band specified in the corresponding entry of the `band` input

Data Types: `double`

## References

[1] IEEE Std 802.11-2020 (Revision of IEEE Std 802.11-2016). “Part 11: Wireless LAN Medium Access Control (MAC) and Physical Layer (PHY) Specifications.” IEEE Standard for Information Technology — Telecommunications and Information Exchange between Systems — Local and Metropolitan Area Networks — Specific Requirements.

[2] IEEE Std 802.11ax™-2021 (Amendment to IEEE Std 802.11-2020). “Part 11: Wireless LAN Medium Access Control (MAC) and Physical Layer (PHY) Specifications. Amendment 1: Enhancements for High Efficiency WLAN.” IEEE Standard for Information Technology — Telecommunications and Information Exchange between Systems. Local and Metropolitan Area Networks — Specific Requirements.

## Version History

Introduced in R2022a