Examples
A simple example below solves the maximum-likelihood detection problem of dimension 3. Test files provided with the detectors contain additional examples of use.
Prerequisites:
- Copy the files of SDR and PSK Detectors to a selected directory.
- Start Matlab environment.
- Change the current directory to the one that contains the detector files.
Simulating Rayleigh fading communication channel:
Set the vector of transmitted bits:
Set the transmission power, specified by the signal-to-noise ratio at the receiver:
Generate random channel matrix and noise vector:
Simulate the communication channel:
Running SDR Detector:
Specify the signal-to-noise ratio parameter of the detector:
Run SDR Detector:
Display the detected binary symbols:
Running PSK Detector:
Set the quality-speed tradeoff parameter:
Run PSK Detector:
Convert detected phase vector into the actual symbols:
Display the vector of detected bits:
|