2-D line plots of CCDF curves
2-D line plots corresponding to the complementary cumulative distribution function (CCDF)
curves of a signal of interest specified by
lines = plot(
ccdf. The number of curves
is equal to the number of channels in the signal. The function returns a column vector of
chart line objects corresponding to the plots.
Before calling the
plot function, you must obtain the CCDF
curves of the signal of interest by calling the
System object™ on the signal.
Obtain CCDF Curves for 16-QAM and QPSK Signals
Generate 16-QAM and QPSK modulated signals.
qamTxSig = qammod(randi([0 15],20e3,1),16,'UnitAveragePower',true); qpskTxSig = pskmod(randi([0 3],20e3,1),4,pi/4);
Pass the signals through an AWGN channel.
qamRxSig = awgn(qamTxSig,15); qpskRxSig = awgn(qpskTxSig,15);
Create a CCDF measurement object enabling outputs for the average power measurements and peak power measurements.
ccdf = comm.CCDF(... 'AveragePowerOutputPort',true, ... 'PeakPowerOutputPort',true);
Obtain the CCDF measurements of the two waveforms.
[ccdfy,ccdfx,avg,peak] = ccdf([qamRxSig qpskRxSig]);
Plot the CCDF curves for both signals.
lines — Plotted CCDF curves
column vector of
Plotted CCDF curves, returned as a column vector of
The length of this vector is equal to the number of CCDF curves specified by the input
Line objects uniquely identify the
plotted 2-D CCDF curves. Use these objects to query and modify the properties of the
curves in the plots. For a complete list of object properties, see Line Properties.