GithubHelp home page GithubHelp logo

chenblue / wireless_communication_system-hw3-diversity_combining Goto Github PK

View Code? Open in Web Editor NEW
7.0 2.0 9.0 204 KB

Implement Maximal Ratio Combining & Equal Gain Combing & Selective Combining by Matlab

MATLAB 100.00%
matlab diversity wireless-communication mrc egc maximal-ratio-combining

wireless_communication_system-hw3-diversity_combining's Introduction

Wireless_Communication_System-HW3-Diversity_Combining

This is the homework from COM5170 Wireless Communication in National Tsing Hua University. We are going to implement several diversity combining strategies. The requirements are shown as following.
There are L (L = 1, 2, 3, 4) diversity branches of uncorrelated Rayleigh/Ricean fading signals. The average symbol energy-to-noise power ratio Es/N0 of each branch is 1, 3, 5, 7, and 9 dB. Simulate the QPSK bit error rate for

  1. Selective Combining
  2. Maximal Ratio Combining
  3. Equal Gain Combining
  4. Direct Combining

Algorithm

Selective Combining (SC)

Select the branch with highest signal-to-noise from received signal. SNR of received signal:
$$ SNR=\frac{|g_k |^2 E_s}{E[n^2 ]}, k=1-L $$ Because $\frac{E_s }{E[n^2 ]}$ is fixed, we only have to find largest $|g_k |^2$ among all branches.
Next, compensate the phase shift $\phi _m $, where $g_k=\alpha _k e^{j\phi _k }$ $$ r(t)=\tilde{r}_m (t)\times e^{-j\phi _m } $$

Maximal Ratio Combining (MRC)

The diversity branches are weighted by their complex fading gains and then combined. $$ r(t)=\sum _{k=1} ^L g_k ^* \tilde{r}(t)=\sum _{k=1} ^L g_k ^* g_k \tilde{s}(t)+\sum _{k=1} ^L g_k ^* \tilde{n}(t)=\sum _{k=1} ^L |α_k |^2 \tilde{s}(t)+noise $$

Equal Gain Combining (EGC)

Since QPSK has equal energy symbols, EGC is useful. The diversity branches are not weighted. We compensate the phase shift and combine all branches. $$ r(t)=\sum _{k=1} ^L e^{-j\phi _k } \tilde{r} _k (t)=\sum _{k=1} ^L e^{-j\phi _k } g_k \tilde{s}(t)+\sum _{k=1}^L e^{-j\phi _k } \tilde{n}_k (t)=\sum _{k=1} ^L \alpha _k \tilde{s}(t)+noise $$

Direct Combining

Combine all signals of branches directly and then compensates the overall phase shift. $$ r(t)=e^{-j\phi } \sum _{k=1} ^L \tilde{r} _k (t), φ=∡(\sum _{k=1} ^L \tilde{r} _k(t)) $$

Result

Rayleigh fading channel

  1. Selective Combining
    ray_sc
  2. Maxmial Ratio Combining
    ray_mrc
  3. Equal Gain Combining
    ray_egc
  4. Direct Combining
    ray_dc

Ricean fading channel

  1. Selective Combining
    ric_sc
  2. Maxmial Ratio Combining
    ric_mrc
  3. Equal Gain Combining
    ric_egc
  4. Direct Combining
    ric_dc

Comparison among all combining strategies

The following 2 figures are both use 4 branches.

  1. Rayleigh
    ray_all
  2. Ricean
    ric_all
  • Performance: MRC > EGC > SC > DC

Comparison between Rayleigh & Ricean channel

The following figure use Equal gain combining with 4 branches.
ray_ric

  • Performance: Ricean > Rayleigh

wireless_communication_system-hw3-diversity_combining's People

Contributors

chenblue avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.