berawgn

Computes Bit Error Rate (ber) for Additive White Gaussian Noise (AWGN) channel

Séquence d'appel

ber = berawgn(wf,ebno)
ber = berawgn(type,ebno[,M[,opt]])

Paramètres

wf:

Waveform object (see wf_init)

ebno:

Eb/No, in dB (a vector or a single value)

type:

Waveform type ('ask','qam','psk','qpsk','dpsk','oqpsk','fsk',...)

M:

Number of symbols used in transmission (default is 2). It is integer power of 2 and one among 2,4,8,16,32

opt:

'c' (coherent demodulation) or 'i' (incoherent)

ber:

Resulting Bit Error Rate vector (one value for each valeu of Eb/N0)

Description

When symbols are transmitted over communication channel having additive white gaussian noise then probability of error for the received symbols is given by this function. For case of 'fsk' correlation among the carriers and method used for detection at receiver which is coherent or noncoherent also needs to be specified. This function returns an array having same size as the size of array containing Eb/No values.

Note

The original code for this function has been written by: Vinayak Chandra Sharma (Department of Electrical Engineering, IIT Bombay), guided by prof. Saravanan Vijayakumaran

Exemples

ber = berawgn('psk',1:10,8) // 8-PSK
ber = berawgn('fsk',1:10,2,'c')  // 2-FSK, coherent demodulation
ber = berawgn('fsk',1:10,2,'i')  // 2-FSK, incoherent demodulation