FUNCTION REFERENCE
ofdmmod
Modulate already-mapped complex subcarriers using OFDM.
Modulate already-mapped complex subcarriers using OFDM.
Syntax
y = ofdmmod(x,nfft,cplen,nullidx,pilotidx,pilots, OversamplingFactor=value)x is data-subcarriers by symbols by streams, optionally by batches. nfft is an integer at least 8. Centered one-based null and pilot indices must be unique and disjoint; DC is floor(nfft/2)+1. Pilots have pilot-subcarriers by symbols by streams by batches shape. cplen is a nonnegative integer scalar <=nfft or a row vector per symbol (vector entries can exceed nfft). OversamplingFactor defaults to 1 and its products with nfft and every cplen must be integers.
Example
x=reshape(1:16,8,2)+1i; y=ofdmmod(x,8,2); z=ofdmdemod(y,8,2); assert(max(abs(z(:)-x(:)))<1e-12);Differences from MATLAB: Oversampling factors below 1 and dlarray/gpuArray are unsupported. FFTs are capped at 1048576 points; output and scratch obey memory and work limits.
These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.