Semidefinite Relaxation codes for the discrete Integer Least Squares problem

 
 

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:

generate bits

Set the transmission power, specified by the signal-to-noise ratio at the receiver:

choose signal-to-noise ratio

Generate random channel matrix and noise vector:

generate random channel

Simulate the communication channel:

simulate communication channel

Running SDR Detector:

Specify the signal-to-noise ratio parameter of the detector:

specify snr parameter of the detector

Run SDR Detector:

run SDR Detector

Display the detected binary symbols:

display the output

Running PSK Detector:

Set the quality-speed tradeoff parameter:

set quality-speed tradeoff parameter

Run PSK Detector:

run PSK Detector

Convert detected phase vector into the actual symbols:

convert phases to symbols

Display the vector of detected bits:

display the output