<< plot_binary Graphics plot_demod >>

comm_tbx >> Graphics > plot_const

plot_const

Plot a scatter plot or a theorical constellation diagram

Parameters

x:

I/Q signal (I is real part, Q is imaginary part) to plot

wf:

waveform object (as can be initialized by wf_init)

Description

Plot $\mathbf{Im}(x) = f\left(\mathbf{Re}(x)\right)$.

Example 1: plotting a theorical constellation

wf = wf_init('qpsk');
clf(); plot_const(wf);

Example 2: Scatter plot

// Generate a test 8PSK signal, with:
// sampling frequency = 1 MHz, zero IF, symbol frequency = 100 kHz
fs = 1e6; fi = 0; fsymb = 100e3;
mod = mod_init('8psk',fs,fi,fsymb);
b = prbs(1000); // Random bit sequence
[mod,x] = mod_process(mod,b);
x = awgn(x,0.02); // Add some noise
clf(); plot_const(x, 'i');

Limitations

Cannot be used in the same figure as other plots (except other plot_const), because of an incompatibility due to the colormap function.

See also

Authors


Report an issue
<< plot_binary Graphics plot_demod >>