fqpskmod: QPSK Modulator

Description Usage Arguments Value See Also Examples

Description

Receives a vector of bits (1's and 0's). The 1's and 0's are mapped to in-phase (real) and quadrature (imaginary) components. Correspondingly, a bit of 1 is mapped to +1/sqrt(2), otherwise to -1/sqrt(2) according to the following mapping.

input output
00 (-1 - 1i) / sqrt(2)
01 (-1 + 1i) / sqrt(2)
10 (+1 - 1i) / sqrt(2)
11 (+1 + 1i) / sqrt(2)

Usage

1
fqpskmod(bits, Ns = 1, p = 1)

Arguments

bits

received vector of bits (0's and 1's).

Ns

N samples per symbol (default, Ns = 1)

p

a vector defining the pulse shape of the transmitted waveform (default, p = 1)

Value

Returns a complex vector of QPSK symbols. If Ns > 1 then the returned signal is shaped with pulse shape, p.

See Also

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

Examples

1
2
3
4
5
M=4
Nsymbols=10
Nbits=log2(M)*Nsymbols
bits <- sample(0:1,Nbits, replace=TRUE)
s <- fqpskmod(bits)

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