A MATLAB simulation of a digital communications system
Transmitter, channel and receiver in a digital communication system are simulated.
- Bits are generated.
- Header bits are added to the beginning of the message.
- Message is encoded with Gray or binary coding.
- Message is modulated (PAM, PSK or QAM modulation) with a specified pulse shape (rectangular, triangular, sine, raised cosine, root raised cosine or Gaussian) and a specified span for the pulse.
- Time delay, phase offset and additive white Gaussian noise is added to the signal.
- Channel delay is detected by means of the cross correlation of the received signal and the header samples. Using the detected value, the received signal is synchronized.
- Phase offset of the channel is detected and compensated.
- Signal is demodulated into a sequence of symbols. Minimum distance detection is used.
- Resultant symbols are decoded using Gray or binary decoding.
- Bit error rate is calculated and plotted.
- The files in this repository are the product of the Digital Communications Lab held by Professor A. Olfat in the fall of 2020 at the University of Tehran.