plot_ber

Plot Bit Error Rate (BER) in log domain

Calling sequence

plot_ber(snr,ber[,format]); // Plots empirical BER
plot_ber(wf[,format]);      // Plots theorical BER

Parameters

snr:

Signal to noise ratio, in dB

ber:

Bit-error rate

format:

Format string, as for plot function

wf:

Waveform object or string identifying the waveform type (e.g. 'bpsk', 'qpsk', ...)

Description

This is just a call to standard plot function, followed by setting the log flag to 'nl' (logarithmic view of the BER).

Example

clf();
plot_ber('bpsk','b-');
plot_ber('fsk','rs');
legend(['bpsk','fsk']);

BPSK bit error rate