Learn R Programming

rwirelesscom (version 1.4.3)

fbpskmod: BPSK Modulator

Description

Receives a vector of bits, each with value 0 or 1, and outputs a vector with values 1 and -1, respectively.

Usage

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

Arguments

bits
- 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 BPSK modulated vector, each element taking on values of 1 or -1. If Ns > 1 then the returned signal is shaped with pulse shape, p.

See Also

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

Examples

Run this code
bits <- sample(0:1,10, replace=TRUE)
fbpskmod(bits)

Run the code above in your browser using DataLab