Learn R Programming

rwirelesscom (version 1.4.3)

f64qamdemod: 64-QAM Demodulator

Description

Receives a vector of complex values, r, corresponding to a 64-QAM modulated signal transmitted through a communications channel (e.g., signal plus noise). Each received 64-QAM symbol (one symbol per r sample) is decoded into 6 bits. The 64-QAM symbol decision regions are defined with respect to the constellation generated by f64qammod(), where in-phase and quadrature constellation points take on values -7, -5, -3, -1, +1, +3, +5, +7, respectively.

Usage

f64qamdemod(r)

Arguments

r
- complex valued input vector

Value

a vector of 1's and 0's, 6 bits per input element (64-QAM symbol)

See Also

Other rwirelesscom functions: eyediagram; f16pskdemod; f16pskmod; f16qamdemod; f16qammod; f64qammod; f8pskdemod; f8pskmod; fNo; fbpskdemod; fbpskmod; fqpskdemod; iqdensityplot; iqscatterplot; stemplot

Examples

Run this code
M=64
Es=42
Eb = Es/log2(M)
Nsymbols=1000
Nbits=log2(M)*Nsymbols
bits <- sample(0:1,Nbits, replace=TRUE)
s <- f64qammod(bits)
EbNodB=12
No = Eb/(10^(EbNodB/10))
n <- fNo(Nsymbols,No,type="complex")
r <- s+n
bitsr <- f64qamdemod(r)
biterrs<-bits[bitsr!=bits]
Pberr=length(biterrs)/length(bits)

Run the code above in your browser using DataLab