Main Content

wlans1gdemodulate

Demodulate fields of S1G waveform

Description

example

sym= wlanS1GDemodulate(rx,field,cfg)recovers a demodulated frequency-domain signal by orthogonal frequency-division multiplexing (OFDM) demodulating received time-domain signalrx. The function demodulatesrxby using S1G transmission parameterscfgand signal field valuefield.

example

sym= wlanS1GDemodulate(___,'OFDMSymbolOffset',symOffset)指定OFDM符号采样偏移量为循环前缀长度的一部分。

Examples

有限公司llapse all

Perform OFDM demodulation on the S1G-SIG field and extract the data and pilot subcarriers.

Generate a WLAN waveform for an S1G transmission.

cfg = wlanS1GConfig; bits = [1; 0; 0; 1]; waveform = wlanWaveformGenerator(bits,cfg);

Obtain the field indices and extract the S1G-SIG field.

ind = wlanfieldIndices(CFG);rx =波形(ind.s1gsig(1):ind.s1gsig(2),:);

执行OFDM解调S1G-SIG字段。

sym = wlanS1GDemodulate(rx,'S1G-SIG',CFG);

Get the OFDM information, then extract the data and pilot subcarriers.

info = wlans1gofdminfo('S1G-SIG',CFG);data = sym(info.dataindices,:,::);飞行员= sym(info.pilotindices,:,::);

Perform OFDM demodulation on the S1G-Data field for an OFDM symbol offset, specified as a fraction of the cyclic prefix length.

Generate a WLAN waveform for an S1G transmission with the specified modulation and coding scheme (MCS).

cfg = wlanS1GConfig('MCS',7);位= [0;0;0;1];waveform = wlanwaveformgenerator(位,CFG);

Obtain the field indices and extract the S1G-Data field.

ind = wlanfieldIndices(CFG);rx = waveform(ind.S1GData(1):ind.S1GData(2),:);

Perform OFDM demodulation on the S1G-Data field, specifying an OFDM symbol offset of0.

field ='S1G-Data'; sym = wlanS1GDemodulate(rx,field,cfg,'OFDMSymbolOffset',0);

Input Arguments

有限公司llapse all

Received time-domain signal, specified as a complex-valued matrix of sizeNs-by-Nr.

  • Nsis the number of time-domain samples. IfNsis not an integer multiple of the OFDM symbol length,Ls, for the specified field,then the function ignores the remainingmod(Ns,Ls)symbols.

  • Nris the number of receive antennas.

Data Types:double
Complex Number Support:Yes

要解调的字段,指定为这些值之一。

  • 'S1G-LTF1'– Demodulate the first S1G long training field (S1G-LTF1).

  • 'S1G-SIG'– Demodulate the S1G signaling (S1G-SIG) field.

  • 'S1G-LTF2N'– Demodulate the subsequent S1G long training fields (S1G-LTF2N).

  • 's1g-sig-a'- 解码S1G信号A(S1G-SIG-A)字段。

  • 's1g-sig-b'– Demodulate the S1G signal B (S1G-SIG-B) field.

  • 'S1G-Data'– Demodulate the S1G-Data field.

Data Types:char|string

Physical layer (PHY) format configuration, specified as awlanS1GConfig目的。

OFDM symbol sampling offset, as a fraction of the cyclic prefix length, specified as a scalar in the interval [0, 1].

您指定的值指示了OFDM解调相对于循环前缀开头的起始位置。

Example:0.45

Data Types:double

Output Arguments

有限公司llapse all

解调的频域信号,作为一个大小的复杂值返回Nsc-by-Nsym-by-Nr.

  • Nscis the number of active occupied subcarriers in the demodulated field.

  • Nsymis the number of OFDM symbols.

  • Nris the number of receive antennas.

Data Types:double
Complex Number Support:Yes

Extended Capabilities

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

Version History

Introduced in R2019a