# ofdmdemod

Demodulate time-domain signal using orthogonal frequency division multiplexing (OFDM)

## Syntax

## Description

performs OFDM demodulation on the input time domain signal specified in
`outSym`

= ofdmdemod(`ofdmSig`

,`nfft`

,`cplen`

)`ofdmSig`

, using an FFT size specified by
`nfft`

and cyclic prefix length specified by
`cplen`

. For information, see OFDM Demodulation.

removes null subcarriers from the locations specified in
`outSym`

= ofdmdemod(`ofdmSig`

,`nfft`

,`cplen`

,`symOffset`

,`nullidx`

)`nullidx`

. For this syntax, the symbol sampling offset is
applied to each OFDM symbol and the number of rows in the output is
`nfft`

–
`length(`

, which accounts for the
removal of null subcarriers. Use null subcarriers to account for guard bands and DC
subcarriers. For information, see Subcarrier Allocation and Guard Bands.`nullidx`

)

`[`

returns pilot subcarriers for the pilot indices specified in
`outSym`

,`pilots`

] = ofdmdemod(`ofdmSig`

,`nfft`

,`cplen`

,`symOffset`

,`nullidx`

,`pilotidx`

)`pilotidx`

. For this syntax, the symbol sampling offset is
applied to each OFDM symbol and number of rows in the output is
`nfft`

–
`length(`

–
`nullidx`

)`length(`

, which accounts for
the removal of null and pilot subcarriers. The function assumes that pilot
subcarrier locations are the same across each OFDM symbol and transmit
antenna.`pilotidx`

)

specifies the optional oversampling factor name-value argument in addition to input
arguments in previous syntaxes. The oversampling factor for an upsampled input
signal must be specified as a positive scalar. Additionally, the products
(`outSym`

= ofdmdemod(`ofdmSig`

,`nfft`

,`cplen`

,___,OvesamplingFactor=Value)`OversamplingFactor`

×`nfft`

) and
(`OversamplingFactor`

×`cplen`

) must both
result in integers. The default value for `OversamplingFactor`

is
`1`

.

For example, `ofdmdemod(inSym,nfft,cplen,OversamplingFactor=2)`

demodulates assuming the input signal was upsampled by a factor of two.

## Examples

## Input Arguments

## Output Arguments

## More About

## Extended Capabilities

## Version History

**Introduced in R2018a**