Running the QPSK Simulation Example
The green and magenta lines are the theoretical bit error rate (BER) and symbol error rate (SER) performance curves for QPSK, respectively. The example, SIMBASEBANDEX, plots the simulated BER and SER in red and blue lines, respectively. SIMBASEBANDEX uses MODEM.PSKMOD and MODEM.PSKDEMOD to simulate PSK at baseband using a complex envelope representation of the modulated signal. For this simulation, we use the default random number stream instead of a random number stream with known state and seed. Therefore, the results may vary slightly for different runs.
simbasebandex(0:5);
The Binary Symmetric Channel block, which simulates a channel with noise, is useful for building models of channel coding. For other types of applications, you might want to construct a more realistic model of a channel. For example, you can add modulation and demodulation, and replace the Binary Symmetric Channel block with an AWGN Channel block, which adds white Gaussian noise to the channel. The following figure shows an example that uses binary phase shift keying (BPSK). 1 | 2 | Поиск по сайту:
|