Learn R Programming

rwirelesscom (version 1.4.3)

iqdensityplot: IQ Density Plot

Description

A convenience function to plot a density function of a vector containing the in-phase and quadrature signal (plus noise).

Usage

iqdensityplot(r, iq = "r")

Arguments

r
- complex or real valued vector
iq
- if iq = "r" (default) then plot density of Re(r) else if iq = "q" then plot density of Im(r)

See Also

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

Examples

Run this code
M=4
Es=1
Eb = Es/log2(M)
Nsymbols=1000
Nbits=log2(M)*Nsymbols
bits <- sample(0:1,Nbits, replace=TRUE)
s <- fqpskmod(bits)
EbNodB=4
No = Eb/(10^(EbNodB/10))
n <- fNo(Nsymbols,No,type="complex")
r <- s+n

Run the code above in your browser using DataLab