fbpskdemod: BPSK Demodulator

Description Usage Arguments Value See Also Examples

Description

Receives a vector of real values, corresponding to a BPSK modulated signal transmitted through a communications channel (e.g., signal plus noise). An input value < 1 is mapped to an output value of 0, otherwise to a value of 1.

Usage

1

Arguments

r

received signal vector

Value

returns a vector of 1's and 0's corresponding to BPSK demodulation of the input vector

See Also

Other rwireless: eyediagram, f16pskdemod, f16pskmod, f16qamdemod, f16qammod, f64qamdemod, f64qammod, f8pskdemod, f8pskmod, fNo, fbpskmod, fqpskdemod, fqpskmod, iqdensityplot, iqscatterplot, stemplot

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
Eb=1
Nbits=10
bits <- sample(0:1,Nbits, replace=TRUE)
s <- fbpskmod(bits)
EbNodB=8
No = Eb/(10^(EbNodB/10))
n <- fNo(Nbits,No)
r <- s+n
bitsr <- fbpskdemod(r)
biterrs<-bits[bitsr!=bits]
Pberr=length(biterrs)/length(bits)

algutier1/rwirelesscom documentation built on May 12, 2019, 10:06 a.m.