Learn R Programming

rwirelesscom (version 1.4.3)

iqscatterplot: IQ Scatter Plot

Description

A convenience function that plots a scatter diagram of Im(r) vs. Re(r). The function is useful for visualizing constellations such as M-PSK or M-QAM.

Usage

iqscatterplot(r)

Arguments

r
- complex or real valued vector

See Also

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

Examples

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

Run the code above in your browser using DataLab