pls its urgent. who can solve it, using matlab. i need the source code. thanks.......

Status
Not open for further replies.

ericiland

Newbie level 4
Joined
Nov 5, 2011
Messages
5
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,323
use matlab to plot the graph of the received power as a function of distance between transmitter and receiver, use simplified free space pathloss (including antenna gains) choose two different carrier frequency and disscus the obtained graph. set all parameters in a reasonable way.


question2: use matlab to illustrate the outage probability due to the combine effect of pathloss and shadowing, set the necessary parameters, including the minimum requried received power in a resonable way. plot the graph of the outage probability as a function of the varing distance between the tansmitter and receiver.
 

In order to do this all you need to have relation of the transmitter and receiver, path loss, distance and carrier frequency ( mathematical models) then one can do the loop based coding for obtaining the result and those can be plotted
 

this is the relationship of pathloss with receiver, tranmitter and gain
PL dB = 10 log10
Pt/
Pr
= −10 log10
Glλ2/
(4πd)2 .

G1=1
pr=100
pt=140

---------- Post added at 18:19 ---------- Previous post was at 18:17 ----------

d=4000..............................................................
 



I have a MATLAB sorce code for Free Space Propagation Model...
See if this can help u..

Code:
clear all;
close all;
clc;
disp('The Free Space Propagation Model.');
Gt = input('Enter transmitter antenna gain:- ');
Gr = input('Enter receiver antenna gain:- ');
f = input('Enter the operating frequency:- ');
l = 300 / f;
d = 50:50:2000;

Pl1 = (Gt * Gr * l^2) / ((4 * pi)^2);
for i = 1:40
Pl(i) = -10 * log10(Pl1/d(i)^2);
end

plot(d,Pl,'-*r');
title('The Free Space Propagation Model');
xlabel('T-R seperation(in meters)----->');
ylabel('Path Loss(dB)------>');

I cannot get to design according to your demand because of my xams...
 
I think you can modifiy your code to get two frequency input and get the Pathloss parameter computed

I had attempted to modify the code given by errakeshpillai ....get a look at it.....May be it will be helpful to you


clear all;
close all;
clc;
disp('The Free Space Propagation Model.');
Gt = input('Enter transmitter antenna gain:- ');
Gr = input('Enter receiver antenna gain:- ');
f = input('Enter the first operating frequency:- ');
f1 = input('Enter the second operating frequency:- ');
l = 300 / f;
l1 = 300 / f1;
d = 50:50:2000;

Pl1 = (Gt * Gr * l^2) / ((4 * pi)^2);
Pl2 = (Gt * Gr * l1^2) / ((4 * pi)^2);
for i = 1:40
Pl(i) = -10 * log10(Pl1/d(i)^2);
Pl1(i) = -10 * log10(Pl2/d(i)^2);
end

plot(d,Pl,'-*r',d,Pl1,'-*b');
title('The Free Space Propagation Model');
xlabel('T-R seperation(in meters)----->');
ylabel('Path Loss(dB)------>');


with regards,

Milind
 
That means the addition is just one more frequency at which the communication is done...
I think then this might work.....
 

thanks for yr solutions......its really helpfull. this is the received power

Pr dBm = Pt dBm +10 log10(Gl) + 20 log10(λ) − 20 log10(4π) − 20 log10(d ) where landa(λ) = c/f. f is frequency, c is speed of light. can you run it on a matlab to generate the source code. in other to plot a graph of received power pr over distance d. thanks once more.
 

thanks every one, yr replies has been very helpful..............do any body have any idea on the outage probability
 

No..
I don't have any idea about outage probability, but will surely like to know something about it....
 

this is the computation of outage probability on matlab


clear all
clc
clf

%Definition of constant

%path loss exponent lambdaa = [2 8]
lambda=3;

%Distance d0=1
d0=1;

%Distance between transmites and receiver
d=[10:0.001:200];

%Constant c=1àlog(K)
c=-31.54;

%Transmited powe pt =[10 100] in dBm
pt=[10:20:90];

%Variance var=sqrt([8 12])
var=3;

%Minimum power pmin=[-500 -100]
pmin=-100;

for i=1:5
%Calculation of z

z=(pmin-(pt(i)+c-10*lambda*log(d/d0)))/(var);

%Calculation of Q

q=0.5*erfc(z/sqrt(2));

%Calculation of the probability
pro=1-q;

%Output
hold on;
xlabel('Distance')
ylabel('Outage probability')
title('Benjamin Abiemo')
plot(d,pro),grid on
end
 


thank you ericiland. this code has been really helpful. could you explain the meaning of this %Constant c=1àlog(K)
c=-31.54; for further understanding. i'm little confused. thank you once again
 
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…