Nominal sample rate
Sample Rate for WUR Transmission
Get the sample rate for a WLAN wake-up radio (WUR) transmission.
cfgWUR = wlanWURConfig; fs = wlanSampleRate(cfgWUR)
fs = 20000000
Sample Rate for 160 MHz WLAN Transmission
Get the sample rate for WLAN transmissions with specified bandwidths.
Specify a channel bandwidth of 160 MHz
cbw = 'CBW160';
Return the sample rate.
fs = wlanSampleRate(cbw)
fs = 160000000
Sample Rate for Oversampled HE TB Transmission
Get the sample rate for an oversampled high-efficiency trigger-based (HE TB) WLAN transmission.
cfgHETB = wlanHETBConfig; osf = 2.5; fs = wlanSampleRate(cfgHETB,Oversamplingfactor=osf)
fs = 50000000
cfgFormat — WLAN transmission parameters
wlanHESUConfig object |
wlanHEMUConfig object |
wlanHETBConfig object |
wlanHERecoveryConfig object |
wlanWURConfig object |
wlanDMGConfig object |
wlanS1GConfig object |
wlanVHTConfig object |
wlanHTConfig object |
cbw — Channel bandwidth
Channel bandwidth, specified as one of these values.
'CBW1'— Channel bandwidth of 1 MHz
'CBW2'— Channel bandwidth of 2 MHz
'CBW4'— Channel bandwidth of 4 MHz
'CBW5'— Channel bandwidth of 5 MHz
'CBW8'— Channel bandwidth of 8 MHz
'CBW10'— Channel bandwidth of 10 MHz
'CBW16'— Channel bandwidth of 16 MHz
'CBW20'— Channel bandwidth of 20 MHz
'CBW40'— Channel bandwidth of 40 MHz
'CBW80'— Channel bandwidth of 80 MHz
'CBW160'— Channel bandwidth of 160 MHz
'CBW320'— Channel bandwidth of 320 MHz
osf — Oversampling factor
1 (default) | scalar greater than or equal to 1
Oversampling factor, specified as a scalar greater than or equal to 1.
fs — Sample rate
Sample rate, in samples per second, returned as a scalar.
An oversampled signal is a signal sampled at a frequency that is higher than the Nyquist rate. WLAN signals maximize occupied bandwidth by using small guardbands, which can pose problems for anti-imaging and anti-aliasing filters. Oversampling increases guardband width relative to the total signal bandwidth, thereby increasing the number of samples in the signal.
This function performs oversampling by using a larger IFFT and zero pad when generating an OFDM waveform. This diagram shows the oversampling process for an OFDM waveform with NFFT subcarriers comprising Ng guardband subcarriers on either side of Nst occupied bandwidth subcarriers.
C/C++ Code Generation
Generate C and C++ code using MATLAB® Coder™.
Introduced in R2017b