rm = nrRateMatchPolar(enc,K,E)
returns the rate-matched output of length E for the polar-encoded input
enc and information block length K, as specified
in TS 38.212 Section 5.4.1 [1]. In this syntax, coded-bit
interleaving is disabled. Use this syntax for downlink (DL) configuration.
rm = nrRateMatchPolar(enc,K,E,ibil)
controls coded-bit interleaving. To enable coded-bit interleaving, set
ibil to true. Use this syntax for uplink (UL)
configuration with coded-bit interleaving enabled.
Create a polar encoded random block of 512 bits and perform polar rate matching. Specify an information block of 56 bits and a rate-matched output of 864 bits.
N = 2^9;
K = 56;
E = 864;
in = randi([0 1],N,1);
out = nrRateMatchPolar(in,K,E)