{"id":91,"date":"2011-06-03T10:22:45","date_gmt":"2011-06-03T10:22:45","guid":{"rendered":"http:\/\/www.raymaps.com\/blog\/?p=91"},"modified":"2011-11-15T09:18:05","modified_gmt":"2011-11-15T09:18:05","slug":"maximal-ratio-combining-in-rayleigh-fading","status":"publish","type":"post","link":"https:\/\/www.raymaps.com\/index.php\/maximal-ratio-combining-in-rayleigh-fading\/","title":{"rendered":"Maximal Ratio Combining in Rayleigh Fading"},"content":{"rendered":"<p style=\"text-align: justify;\">We just saw the advantage an equal gain combiner (a combining scheme that just adds the signals after co-phasing them) provides in a Rayleigh fading channel. Lets now look at a variant of this scheme called maximal ratio combining (MRC). In MRC the signals arriving at the receivers are weighted by the channel gains i.e. a stronger signal is weighted more than a weaker signal before combining. It must be noted that in an actual system the received signals are both scaled and phase shifted thus an MRC receiver multiplies the received signals by the complex conjugate of the channel coefficients before addition.<\/p>\n<pre lang=\"matlab\">%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%\r\nfunction[ber]=err_rate4(l,EbNo)\r\nsi=2*(round(rand(1,l))-0.5);\r\nsq=2*(round(rand(1,l))-0.5);\r\ns=si+j*sq;\r\nn1=(1\/sqrt(2*10^(EbNo\/10)))*(randn(1,l)+j*randn(1,l));\r\nh1=(1\/sqrt(2))*((randn(1,l))+j*(randn(1,l)));\r\nn2=(1\/sqrt(2*10^(EbNo\/10)))*(randn(1,l)+j*randn(1,l));\r\nh2=(1\/sqrt(2))*((randn(1,l))+j*(randn(1,l)));\r\nr1=abs(h1).*s+n1;\r\nr2=abs(h2).*s+n2;\r\nr=abs(h1).*r1+abs(h2).*r2;\r\nsi_=sign(real(r));\r\nsq_=sign(imag(r));\r\nber1=(l-sum(si==si_))\/l;\r\nber2=(l-sum(sq==sq_))\/l;\r\nber=mean([ber1 ber2]);\r\n%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%<\/pre>\n<p style=\"text-align: justify;\">OR (using the complex channel coefficient)<\/p>\n<pre lang=\"matlab\">%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%\r\nfunction[ber]=err_rate4(l,EbNo)\r\nsi=2*(round(rand(1,l))-0.5);\r\nsq=2*(round(rand(1,l))-0.5);\r\ns=si+j*sq;\r\nn1=(1\/sqrt(2*10^(EbNo\/10)))*(randn(1,l)+j*randn(1,l));\r\nh1=(1\/sqrt(2))*((randn(1,l))+j*(randn(1,l)));\r\nn2=(1\/sqrt(2*10^(EbNo\/10)))*(randn(1,l)+j*randn(1,l));\r\nh2=(1\/sqrt(2))*((randn(1,l))+j*(randn(1,l)));\r\nr1=h1.*s+n1;\r\nr2=h2.*s+n2;\r\nr=conj(h1).*r1+conj(h2).*r2;\r\nsi_=sign(real(r));\r\nsq_=sign(imag(r));\r\nber1=(l-sum(si==si_))\/l;\r\nber2=(l-sum(sq==sq_))\/l;\r\nber=mean([ber1 ber2]);\r\nreturn\r\n%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%<\/pre>\n<p style=\"text-align: justify;\">We see that there is an incremental improvement in BER using MRC instead of EGC (1dB can sometimes be significant).<\/p>\n<div class=\"mceTemp mceIEcenter\" style=\"text-align: justify;\">\n<dl id=\"attachment_92\" class=\"wp-caption aligncenter\" style=\"width: 876px;\">\n<dt class=\"wp-caption-dt\"><a rel=\"attachment wp-att-92\" href=\"http:\/\/www.raymaps.com\/index.php\/maximal-ratio-combining-in-rayleigh-fading\/ber4\/\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-92\" title=\"Maximal Ratio Combining\" src=\"http:\/\/www.raymaps.com\/wp-content\/uploads\/2011\/06\/ber4.jpg\" alt=\"\" width=\"866\" height=\"561\" srcset=\"https:\/\/www.raymaps.com\/wp-content\/uploads\/2011\/06\/ber4.jpg 866w, https:\/\/www.raymaps.com\/wp-content\/uploads\/2011\/06\/ber4-300x194.jpg 300w\" sizes=\"auto, (max-width: 866px) 100vw, 866px\" \/><\/a><\/dt>\n<dd class=\"wp-caption-dd\">Maximal Ratio Combining<\/dd>\n<\/dl>\n<\/div>\n<p style=\"text-align: justify;\">Note:<\/p>\n<p style=\"text-align: justify;\">1. The performance of MRC is the same using both the techniques given above.<\/p>\n<p style=\"text-align: justify;\">2. Phase rotation of the noise component does not effect the BER performance.<\/p>\n<p style=\"text-align: justify;\">&nbsp;<\/p>\n<p style=\"text-align: justify;\">&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>We just saw the advantage an equal gain combiner (a combining scheme that just adds the signals after co-phasing them) provides in a Rayleigh fading channel. Lets now look at a variant of this scheme called maximal ratio combining (MRC). In MRC the signals arriving at the receivers are weighted by the channel gains i.e. a stronger signal is weighted more than a weaker signal before combining. It must be noted that in an actual system the received signals are both scaled and phase shifted thus an MRC receiver multiplies the received signals by the complex conjugate of the channel [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11],"tags":[34,35],"class_list":["post-91","post","type-post","status-publish","format-standard","hentry","category-berp","tag-ber","tag-diversity"],"_links":{"self":[{"href":"https:\/\/www.raymaps.com\/index.php\/wp-json\/wp\/v2\/posts\/91","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.raymaps.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.raymaps.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.raymaps.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.raymaps.com\/index.php\/wp-json\/wp\/v2\/comments?post=91"}],"version-history":[{"count":25,"href":"https:\/\/www.raymaps.com\/index.php\/wp-json\/wp\/v2\/posts\/91\/revisions"}],"predecessor-version":[{"id":1207,"href":"https:\/\/www.raymaps.com\/index.php\/wp-json\/wp\/v2\/posts\/91\/revisions\/1207"}],"wp:attachment":[{"href":"https:\/\/www.raymaps.com\/index.php\/wp-json\/wp\/v2\/media?parent=91"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.raymaps.com\/index.php\/wp-json\/wp\/v2\/categories?post=91"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.raymaps.com\/index.php\/wp-json\/wp\/v2\/tags?post=91"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}