<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-1630484231907758382</id><updated>2024-09-04T06:06:41.951-07:00</updated><category term="License Manager"/><category term="MATLAB"/><category term="checkout failed"/><category term="lmstat"/><title type='text'>DSP &amp;amp; Communication Knowledge Base</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://dspdotcomm.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1630484231907758382/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://dspdotcomm.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Ubaid Abdullah</name><uri>http://www.blogger.com/profile/09369678715275853829</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>3</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-1630484231907758382.post-3160452428488838090</id><published>2013-04-20T11:45:00.000-07:00</published><updated>2013-04-20T11:45:57.462-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="checkout failed"/><category scheme="http://www.blogger.com/atom/ns#" term="License Manager"/><category scheme="http://www.blogger.com/atom/ns#" term="lmstat"/><category scheme="http://www.blogger.com/atom/ns#" term="MATLAB"/><title type='text'>What to do if all the MATLAB licenses in your institute are occupied ? </title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;span style=&quot;font-family: Georgia, Times New Roman, serif;&quot;&gt;Quite often it happens that when I try to run my MATLAB script that uses a certain toolbox of MATLAB, it gives me the following error:&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;pre style=&quot;background: #f0f0f0; border: 1px dashed #CCCCCC; color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;&quot;&gt;&lt;code style=&quot;color: black; word-wrap: normal;&quot;&gt; License checkout failed.  
 License Manager Error -4  
 Maximum number of users for Communication_Toolbox reached.  
 Try again later.  
 To see a list of current users use the lmstat utility or contact your  
 License Administrator.  
 Troubleshoot this issue by visiting:  
 http://www.mathworks.com/support/lme/R2012a/4  &lt;/code&gt;&lt;/pre&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Georgia, Times New Roman, serif;&quot;&gt;This shows that all the licenses for the Communication Toolbox are in use by other people in your company/institution, and you will have to wait until one of them releases the license. It can be a painstaking job to keep executing the same script again and again in the hope of getting the license for yourself. This repeated execution of the script can be automated using the try, catch block.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Georgia, Times New Roman, serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Georgia, Times New Roman, serif;&quot;&gt;Suppose, myscript.m is the script you want to run. You can use the following script to keep trying until someone releases a license for you.
&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;pre style=&quot;background: #f0f0f0; border: 1px dashed #CCCCCC; color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;&quot;&gt;&lt;code style=&quot;color: black; word-wrap: normal;&quot;&gt; close all;clear all; clc; 
errcl = 2;
while errcl~=1 
    try
        errcl = 1;
        myscript;
    catch err
        disp(&#39;Licenses are still not available ...Retrying after two seconds ...&#39;); 
        pause(2);
        errcl = 2; 
    end
end&lt;/code&gt;
&lt;/pre&gt;
&lt;br /&gt;
In order to break the loop, press Ctrl+C for a few seconds.&lt;br /&gt;
You can also change the time between the two tries by changing the argument of &lt;code style=&quot;color: black; word-wrap: normal;&quot;&gt;pause(2)&lt;/code&gt; function from 2 to any number of seconds you desire.

&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://dspdotcomm.blogspot.com/feeds/3160452428488838090/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dspdotcomm.blogspot.com/2013/04/what-to-do-if-all-matlab-licenses-in.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1630484231907758382/posts/default/3160452428488838090'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1630484231907758382/posts/default/3160452428488838090'/><link rel='alternate' type='text/html' href='http://dspdotcomm.blogspot.com/2013/04/what-to-do-if-all-matlab-licenses-in.html' title='What to do if all the MATLAB licenses in your institute are occupied ? '/><author><name>Ubaid Abdullah</name><uri>http://www.blogger.com/profile/09369678715275853829</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1630484231907758382.post-2706133566473868221</id><published>2009-01-05T21:49:00.000-08:00</published><updated>2009-01-05T22:04:09.717-08:00</updated><title type='text'>Post Your Questions Here</title><content type='html'>This is the place where you can post your questions and article requests. Please observe the following guidelines while asking questions. In the meanwhile, I will work out some better method to post questions.&lt;br /&gt;&lt;br /&gt;1. All the code should be embedded in the question if any.&lt;br /&gt;2. No code writing requests will be entertained. So please avoid it. The best way is to post your own code and I will try to help you out of your problem.&lt;br /&gt;3. If question is related to some already written article, please ask it in the comments section of that particular post. It keeps the information more organized.&lt;br /&gt;&lt;br /&gt;Best Regards,&lt;br /&gt;&lt;br /&gt;Ubaid Abdullah</content><link rel='replies' type='application/atom+xml' href='http://dspdotcomm.blogspot.com/feeds/2706133566473868221/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dspdotcomm.blogspot.com/2009/01/post-your-questions-here.html#comment-form' title='90 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1630484231907758382/posts/default/2706133566473868221'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1630484231907758382/posts/default/2706133566473868221'/><link rel='alternate' type='text/html' href='http://dspdotcomm.blogspot.com/2009/01/post-your-questions-here.html' title='Post Your Questions Here'/><author><name>Ubaid Abdullah</name><uri>http://www.blogger.com/profile/09369678715275853829</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>90</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1630484231907758382.post-4856770286377790754</id><published>2008-11-21T07:02:00.001-08:00</published><updated>2009-05-06T05:19:14.524-07:00</updated><title type='text'>Simulating Sample Spaced Rayleigh Fading Channel</title><content type='html'>&lt;p&gt;Fading channel modeling is a fairly common step while performing any communication system analysis. This article deals with how to model a fading channel with the assumption that channel taps are sample spaced. The first section tells what are the sample spaced taps of the channel and next the discussion is about how can we model such channel in MATLAB along with an example script.  &lt;br /&gt;What does it mean by &quot;sampled spaced taps&quot;? Suppose you have the simplest communication system perspective consisting of a transmitter, channel and receiver where the transmitted waveform passes through the channel and is received by the receiver after getting reflected from different obstacles. While modeling we need to discretize the channel so that it can be simulated in MATLAB or any simulation environment i.e. take channel response at particular time instants and not all the time. So a discrete channel is defined by a set of impulses at particular instant of time instead of a continuous response. These impulses at particular instants are called channel taps and every tap corresponds to a seperate reflected wave that comes after some delay. Quite intuitively, there is no binding on the lengths of paths that these reflected waves travel so there is no binding on how delayed these reflected signals will be received. For example, the second wave can come after a span of 1 microseconds of the first wave and the third wave can come after 2.3 microseconds of the second wave. By sample spaced channel taps, we mean that the difference in delays between different waves is either some sampling interval Ts or a multiple of it.&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjA5rOfK1ZxXxhZcHOPtd8Cw2C7IMnTTBU-NuaZMtG5dDKTAEN1vNZYuFkClwmH4QucZ-xG7BCc4Z2ZlT7OA0-xvfXnIstBzScwf3eHP1xWQ-98ATroGqhh-caKWwERTAWLl0weeutsUgQ/&quot;&gt;&lt;img style=&quot;border-width: 0px;&quot; alt=&quot;Non Uniform Taps&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg0t4EEUBeNpiU6C39gLJ1XSvu87s_eXRkVyXQJouyMMDwrD80RJma6TX444e8v6UqV7pQDAdIsPXnmu2UO4xrDc1X2O537awHHeRLbsGDf8uoTlEduW04qo7fFCQ-FSrUJ_dDc5JhcCG4/&quot; width=&quot;240&quot; border=&quot;0&quot; height=&quot;191&quot; /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgmY2QxjeaOhhbFxnO2Bk_pLEcQVMF-LzonYPcePZtW10hBABS4b1g58re1fBxWbu3zL6GKRZkGf35w4Rt7cL8R0lDVqt7MFUYxbRNNDrqdvC0VEF7HUZveeqG1k9bhM2HQyYQ57ou9K0I/&quot;&gt;&lt;img style=&quot;border-width: 0px;&quot; alt=&quot;Uniform Taps&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgf_TnAQLzqhnafglWY72ImcKKMOdXOGSyXdG6cgjS6xeA4iseh9nOn0R8NrlDzqLWDM8LIz1K7-mlXYkiGVkPhUWs80j1mXaeOlMh79xk2sPFLHe-DE0vzamtWMv4u9Nx9EnCjjTWzws4/&quot; width=&quot;240&quot; border=&quot;0&quot; height=&quot;189&quot; /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;Now, to model the first channel is quite difficult as compared to the second one because the second channel can easily be implemented using a 3-tap FIR filter as the sampling frequency is fixed. &lt;/p&gt;  &lt;p&gt;So, this is quite apparent that if we want to model such channel using an FIR filter i.e. assuming sample spaced taps, we will have to input the waveform samples (that comes out of the transmitter) with the same sampling interval as that of the time interval between the FIR channel taps. With this assumption, we cannot simulate a channel where taps are not uniformly spaced. For this, we will have to interpolate the input wave and/or the channel response. This will be discussed in the next section of this tutorial. In this article, we consider only the case where channel taps are sample spaced i.e. the time interval (or 1/Sampling Frquency) of the signal is the same as that of channel.  &lt;br /&gt;All right! We are now ready to simulate the whole process. Lets take an example of modeling the following channel to clarify the whole picture. &lt;/p&gt;  &lt;h4&gt;Channel Specifications&lt;/h4&gt;  &lt;ol&gt;   &lt;li&gt;No. of Taps = 4 &lt;/li&gt;    &lt;li&gt;No. of Independent Channel Responses = 2000 &lt;/li&gt;    &lt;li&gt;Tap Weights and Delays      &lt;ol&gt;       &lt;li&gt;First Tap = 0 dB with delay of 0 microseconds &lt;/li&gt;        &lt;li&gt;Second Tap = -5 dB with delay of 5 microseconds &lt;/li&gt;        &lt;li&gt;Third Tap = -10 dB with delay of 10 microseconds &lt;/li&gt;        &lt;li&gt;Fourth Tap = -15 dB with delay of 15 microseconds &lt;/li&gt;     &lt;/ol&gt;   &lt;/li&gt;    &lt;li&gt;The sampling frequency of the input signal = 1/5 microseconds = 200 kHz &lt;/li&gt; &lt;/ol&gt;  &lt;p&gt;This channel is sample spaced because,&lt;/p&gt;  &lt;p&gt;sampling interval of input signal = 5 microseconds = Mx(delay difference between two consecutive taps) where M = 1.&lt;/p&gt;  &lt;p&gt;The channel is depicted in the following figure.&lt;/p&gt;  &lt;p&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi88f0_2q8CAbkmrsYTnpJm83zO5aPXSn3ehjebHIVTD5CbEwXi9GiRRryyvDZf_Unk8_gRzWTIgl2ckEAaBii6GKu8k7XFH5CI4koGhOJ3e-z1CLAGRIQ7QDd4cuN6R2XqUJFv-nrzLo0/&quot;&gt;&lt;img style=&quot;border-width: 0px;&quot; alt=&quot;image&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiwM-POZa4QTRLLRBzbCwuJn04wPWhTEhIbfk_Oz8HGSZFBXOC9PRPkhD2G5-MydbsYFn19GXW_2BT2rMLuPrG2tgw6RzbsyKox7upDyEsl28Rf9_nd3kj2H_qCuGwH6tee-7vtQBX_rBg/&quot; width=&quot;240&quot; border=&quot;0&quot; height=&quot;109&quot; /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;First we will make 4 independantly rayleigh faded channel taps. This can be easily done by using the fact that the envelope of two gaussian processes with the same variance and mean is rayleigh distributed. One can make a rayleigh faded tap quite easily using following equation and code in MATLAB.&lt;/p&gt;  &lt;p&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgfQZ7YhJBjSYhLNTHCoMcpq7URhI_OOuSE7jEi9rtWCuUY1FH9epejGBQT5k4nDMa2_LLhaiQR91WNQD-wkijrLRZYOYAH5whxARG0mZdtzh072CeRXiBHRR3SY7wcDE0iGMNL5nIKogU/&quot;&gt;&lt;img style=&quot;border-width: 0px;&quot; alt=&quot;image&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh9vTuyoD5tHgAoWR5uTvhyPz0VJ8ITBAUsWZcLDHVgJdgstmXsv9QlVSjfXE9E4ecPMuWOqJC8ptvuZkrq-Q5HUqErerhLa9u9c3pgvQsI8WjNrqHbWCSwArCWfJ6OCpN76pKU0DPSWEY/&quot; width=&quot;136&quot; border=&quot;0&quot; height=&quot;45&quot; /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;&lt;span style=&quot;font-family:courier new;&quot;&gt;---------------------------------------------------------------&lt;/span&gt;&lt;/p&gt;  &lt;p&gt;&lt;span style=&quot;color: rgb(0, 128, 0);font-family:courier new;&quot;&gt;%% MATLAB Code&lt;/span&gt;&lt;/p&gt;  &lt;p&gt;&lt;span style=&quot;font-family:courier new;&quot;&gt;no_of_taps = 4;    &lt;br /&gt;averaging_interval = 2000;     &lt;br /&gt;tap_weights_db = [0 -5 -10 -15];     &lt;br /&gt;tap_delays = [0 5e-6 10e-6 15e-6]; &lt;/span&gt;&lt;/p&gt;  &lt;p&gt;&lt;span style=&quot;font-family:courier new;&quot;&gt;&lt;span style=&quot;color: rgb(0, 128, 64);&quot;&gt;% Conversion of dBs scale into linear one&lt;/span&gt;     &lt;br /&gt;tap_weights_ln = 10.^(tap_weights_db/10); &lt;/span&gt;&lt;/p&gt;  &lt;p&gt;&lt;span style=&quot;font-family:courier new;&quot;&gt;&lt;span style=&quot;color: rgb(0, 128, 64);&quot;&gt;% Calculation of normalization factor to make the average power of output      &lt;br /&gt;% signal to 1&lt;/span&gt;     &lt;br /&gt;norm_fact = sqrt(sum(tap_weights_ln)); &lt;/span&gt;&lt;/p&gt;  &lt;p&gt;&lt;span style=&quot;font-family:courier new;&quot;&gt;&lt;span style=&quot;color: rgb(0, 128, 64);&quot;&gt;% Generating a Rayleigh Random Variable with average power 1&lt;/span&gt;     &lt;br /&gt;taps = 1/sqrt(2)*(randn(averaging_interval, no_of_taps) + j*randn(averaging_interval,no_of_taps));&lt;/span&gt; &lt;/p&gt;  &lt;p&gt;&lt;span style=&quot;font-family:courier;&quot;&gt;&lt;span style=&quot;color: rgb(0, 128, 64);&quot;&gt;% Making average power of different taps to specified value&lt;/span&gt;     &lt;br /&gt;taps_weights = taps.*repmat(sqrt(tap_weights_ln), averaging_interval,1); &lt;/span&gt;&lt;/p&gt;  &lt;p&gt;&lt;span style=&quot;font-family:courier;&quot;&gt;&lt;span style=&quot;color: rgb(0, 128, 64);&quot;&gt;% Applying to normalization factor&lt;/span&gt;     &lt;br /&gt;taps_norm = 1/norm_fact*taps_weights;&lt;/span&gt; &lt;/p&gt;  &lt;p&gt;&lt;span style=&quot;font-family:courier new;&quot;&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p&gt;&lt;span style=&quot;font-family:courier new;&quot;&gt;---------------------------------------------------------------&lt;/span&gt;&lt;/p&gt;  &lt;h4&gt;Normalization Factors&lt;/h4&gt;  &lt;p&gt;In the above code, there are two normalization factors involved. &lt;/p&gt;  &lt;table width=&quot;401&quot; border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot;&gt;&lt;tbody&gt;     &lt;tr&gt;       &lt;td width=&quot;51&quot; align=&quot;center&quot;&gt;1.&lt;/td&gt;        &lt;td width=&quot;348&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgb33pCoLxV808EDUC2_GMHe8Vo8mXhwAvPXiGDk5mkVJrpVBPt5WxO7aHdyzOdSJaJcQ6yVSBCLS4oBKdTI4mqg6sVjRQf8VSLzxlasrYM-CF7xnxmFkSrrxB4iZ4HhO_9n_Gre3Guu9M/&quot;&gt;&lt;img style=&quot;border-width: 0px;&quot; alt=&quot;image&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg0RaT7lroO1apDPaG9b5kwYg5sXMKLlN9lbN0bFO1DM-3dE1C9S5qsa9KlLsj0tFfioUFVVwiZeFXcwJgIuDyKO3xcHGvYF6eVwT8JbSH3_TifdfzaIgH6zSqyKtGL6_J8ch7Q6PoBhlE/&quot; width=&quot;22&quot; align=&quot;left&quot; border=&quot;0&quot; height=&quot;34&quot; /&gt;&lt;/a&gt; in the assignment of variable &quot;taps&quot;&lt;/td&gt;     &lt;/tr&gt;      &lt;tr&gt;       &lt;td width=&quot;51&quot; align=&quot;center&quot;&gt;2.&lt;/td&gt;        &lt;td width=&quot;348&quot;&gt;norm_fact &lt;/td&gt;     &lt;/tr&gt;   &lt;/tbody&gt;&lt;/table&gt;  &lt;p&gt;The need for these normalization factors arise due to the following reason. When we talk about different taps, actually different replicas of the signal is being added with different delays. The result is that the output signal from this multipath channel has power more than what was input to the channel. For example, if we have input a signal of power 1, the output of channel shouldn&#39;t at least exceed a power of 1. That&#39;s why the tap values are scaled so as to make the total output power equal to 1 for an input signal of power 1 while adding all the replicas. Further, every tap is also a summation of two signals in quadrature each with variance (average normalized power in the AC component) equal to 1. In summary, we need normalization at two stages. &lt;/p&gt;  &lt;ol&gt;   &lt;li&gt;To make average normalized power of rayleigh faded process equal to 1. &lt;/li&gt;    &lt;li&gt;To make average normalized power of all the rayleigh faded taps equal to 1. &lt;/li&gt; &lt;/ol&gt;  &lt;p&gt;In fact, both of these normalization process can be combined as for 2nd normalization we are assuming that each tap has power 1. &lt;/p&gt;  &lt;p&gt;The very first question now arises what is the power of two normally distributed processes added in quadrature? This can be perceived as follows. The randn command creates a gaussian distributed random variable with zero mean and variance 1. Since, variance represents the average normalized power in the AC (varying) component of the signal, we can say that randn will create a gaussian distributed random variable with 0 DC value and 1 average normalized power in AC component. So, we know that the AC power of the two normally distributed R.Vs added in quadrature is 2 with an amplitude of sqrt(2). To make this signal with amplitude sqrt(2) into a signal of amplitude 1 (that will give in return a power of 1^2 = 1), we need to divide the signal with sqrt(2). That&#39;s all about the first normalization factor. It just makes the average normalized power in the AC-component of two normally distributed R.V.s added in quadrature to a value of 1. &lt;/p&gt;  &lt;p&gt;The same analogy can be applied to the understanding of 2nd scaling factor. We needed first scaling factor because we were adding two signals each of power 1. Now, each tap represents a signal of power 1 and they are being added with different weights (and thus different average powers) to each other to produce the effect of multipath. In our case, the same signal is added 4 times (because of the 4 taps) and the average output power is equal to the sum of average powers of the four taps. As described in the channel specification, the power of different taps is as follows. &lt;/p&gt;  &lt;ol&gt;   &lt;li&gt;First Tap = 0 dB or &lt;strong&gt;1&lt;/strong&gt; with delay of 0 microseconds &lt;/li&gt;    &lt;li&gt;Second Tap = -5 dB or &lt;strong&gt;0.316&lt;/strong&gt; with delay of 5 microseconds &lt;/li&gt;    &lt;li&gt;Third Tap = -10 dB or &lt;strong&gt;0.1&lt;/strong&gt; with delay of 10 microseconds &lt;/li&gt;    &lt;li&gt;Fourth Tap = -15 dB or &lt;strong&gt;0.0316&lt;/strong&gt; with delay of 15 microseconds &lt;/li&gt; &lt;/ol&gt;  &lt;p&gt;Thus, the total output power of this channel is 1+0.316+.1+0.0316 = 1.447. If we input a signal of average power 1 to this channel, the average power of the output of the channel would be 1.447. To make the average power of the output signal to 1, we need to divide the taps by sqrt(1.447) = sqrt(sum of linear values of the taps) as done in the code. In summary, both of these normalization factors were incorporated to make the average output power of the channel equal to 1 for a signal of input power 1. &lt;/p&gt;  &lt;h4&gt;Generating The Taps&lt;/h4&gt;  &lt;p&gt;Finally, all the taps are generated using these normalizations and two independent gaussian random variables. Following is the code that proves that the average normalized power of different taps is as specified in the channel.&lt;/p&gt;  &lt;p&gt;&lt;span style=&quot;font-family:courier new;&quot;&gt;---------------------------------------------------------------&lt;/span&gt;&lt;/p&gt;  &lt;p&gt;&lt;span style=&quot;color: rgb(0, 128, 0);font-family:courier new;&quot;&gt;%% MATLAB Code&lt;/span&gt;&lt;/p&gt;  &lt;p&gt;&lt;span style=&quot;font-family:courier;&quot;&gt;disp(&#39;The path gains are as follows (in dB)&#39;);    &lt;br /&gt;20*log10(mean(abs(taps_norm),1))     &lt;br /&gt;disp(&#39;The total path gain of the channel is&#39;);     &lt;br /&gt;sum(mean(abs(taps_norm).^2,1))&lt;/span&gt; &lt;/p&gt;  &lt;p&gt;&lt;span style=&quot;font-family:courier new;&quot;&gt;---------------------------------------------------------------&lt;/span&gt;&lt;/p&gt;  &lt;p&gt;&lt;span style=&quot;font-family:courier new;&quot;&gt;The complete MATLAB script can be found &lt;a href=&quot;http://sites.google.com/site/dspdotcomm/Home/rayleigh_faded_taps.m?attredirects=0&quot;&gt;here&lt;/a&gt;.&lt;/span&gt;&lt;/p&gt;  &lt;p&gt;&lt;span style=&quot;font-family:courier new;&quot;&gt;The physical meanings of different statistical parameters such as mean, variance etc. are given in chapter-1 of &lt;a href=&quot;http://www.amazon.com/gp/product/0130847887?ie=UTF8&amp;amp;tag=dspandcomknob-20&amp;amp;linkCode=as2&amp;amp;camp=1789&amp;amp;creative=9325&amp;amp;creativeASIN=0130847887&quot;&gt;Digital Communications: Fundamentals and Applications (2nd Edition) (Prentice Hall Communications Engineering and Emerging Technologies Series)&lt;/a&gt;&lt;img style=&quot;border-style: none ! important; margin: 0px;&quot; alt=&quot;&quot; src=&quot;http://www.assoc-amazon.com/e/ir?t=dspandcomknob-20&amp;amp;l=as2&amp;amp;o=1&amp;amp;a=0130847887&quot; width=&quot;1&quot; border=&quot;0&quot; height=&quot;1&quot; /&gt;.&lt;/span&gt;&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='http://dspdotcomm.blogspot.com/feeds/4856770286377790754/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dspdotcomm.blogspot.com/2008/11/simulating-sample-spaced-rayleigh.html#comment-form' title='126 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1630484231907758382/posts/default/4856770286377790754'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1630484231907758382/posts/default/4856770286377790754'/><link rel='alternate' type='text/html' href='http://dspdotcomm.blogspot.com/2008/11/simulating-sample-spaced-rayleigh.html' title='Simulating Sample Spaced Rayleigh Fading Channel'/><author><name>Ubaid Abdullah</name><uri>http://www.blogger.com/profile/09369678715275853829</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg0t4EEUBeNpiU6C39gLJ1XSvu87s_eXRkVyXQJouyMMDwrD80RJma6TX444e8v6UqV7pQDAdIsPXnmu2UO4xrDc1X2O537awHHeRLbsGDf8uoTlEduW04qo7fFCQ-FSrUJ_dDc5JhcCG4/s72-c" height="72" width="72"/><thr:total>126</thr:total></entry></feed>