# Path Loss in Matlab???

Status
Not open for further replies.

#### bee

##### Full Member level 2
path loss matlab

Hi,
I am trying to simulate SISO communication with path loss. Following are the parameters involved.

n=3.5; (path loss exponent)
GtGr = 5dBi (transmit antenna gain times receive antenna gain)
fc = 2.5Ghz; (carrier freq)
d = 50m (distance between transmitter and receiver)

As we all know the basic equation for SISO without path loss is

y(t) = h x(t) + n(t);

and Path loss is given by

PL = (d^n) * (4*pi)^2 / (GtGr * (lambda)^2 ) ;

Plz tell me how and where should I include path loss in my simulation code?

Thanks

#### sib

##### Junior Member level 1
Re: path loss matlab

hi friend any idea on this . please share

mohe7

### mohe7

Points: 2

#### bulx

##### Full Member level 4
include PL into h as a scalar. h' = h *PL, and use it to calculate y(t).
- b

#### sib

##### Junior Member level 1
hi
i am not very clear on this is h the impulse response, if it is , shouldnt there be a convolution sign between h and x(t).

#### bulx

##### Full Member level 4
if h is the impulse response (it is conventional to use h for impulse response), yes, it should be convolved with x(t). However, if h is in matrix form (corresponding to multiple paths), it could still be written as multiplication, which is the normal way of writing in wireless context.
- b

#### zum_85

##### Newbie level 3
Please if any one can solve my crucial problem of introducing the path loss in the transmitted signal. I am able to find the received power by the known formula of subtracting the transmitted power with path loss. But the main problem is that to find the Bit error or symbol error rate we need to introduce path loss in the transmitted signal. The main issue is that the signal is in the vector form but path loss is a single value in dB. Now how to put the effect of path loss in the signal. I would highly appreciate for upcoming replies.

#### eng_basem

##### Newbie level 6
how to generate a rayleigh fading channel coefficient taking into consideration the change in h with distance and path loss exponent

#### robintane

##### Junior Member level 1
Hi

Please show me how to include path loss factor to this form : (y = h*x + n)

Thank you

#### eng_basem

##### Newbie level 6
Hi

Please show me how to include path loss factor to this form : (y = h*x + n)

Thank you

u could include the path loss in the channel coefficient h by generating a circular Gaussian distribution of zero-mean and unit variance CN(0,1) multiplied by d^(-v/2) where d is the distance between the source and the receiver and v is the path loss exponent.

#### robintane

##### Junior Member level 1
u could include the path loss in the channel coefficient h by generating a circular Gaussian distribution of zero-mean and unit variance CN(0,1) multiplied by d^(-v/2) where d is the distance between the source and the receiver and v is the path loss exponent.

With chanel Rayleigh fading and AWGN

%AWGN
n1 = 1/sqrt(2)*[randn(1,nr_data_bits) + j*randn(1,nr_data_bits)]*sigma;

%Rayleigh Channel
h1 = 1/sqrt(2)*[randn(1,nr_data_bits) + j*randn(1,nr_data_bits)];
y = h1*x + n1

How to include path loss based on distance (d) and path loss exponent (v)

#### eng_basem

##### Newbie level 6

With chanel Rayleigh fading and AWGN

%AWGN
n1 = 1/sqrt(2)*[randn(1,nr_data_bits) + j*randn(1,nr_data_bits)]*sigma;

%Rayleigh Channel
h1 = 1/sqrt(2)*[randn(1,nr_data_bits) + j*randn(1,nr_data_bits)];
y = h1*x + n1

How to include path loss based on distance (d) and path loss exponent (v)

Before ur last line include the following:
h1 = h1* d^(-v/2);

and complete ur code normally
y = h1*x + n1

#### robintane

##### Junior Member level 1
Before ur last line include the following:
h1 = h1* d^(-v/2);

and complete ur code normally
y = h1*x + n1

Thank you very much.
Could you give me the paper that delivery this form ?

#### eng_basem

##### Newbie level 6
Thank you very much.
Could you give me the paper that delivery this form ?

Power Provisioning and Relay Positioning for Two-Way Relay Channel With Analog Network Coding
IEEE SIGNAL PROCESSING LETTERS, VOL. 18, NO. 9, SEPTEMBER 2011

robintane

### robintane

Points: 2

#### robintane

##### Junior Member level 1
Power Provisioning and Relay Positioning for Two-Way Relay Channel With Analog Network Coding
IEEE SIGNAL PROCESSING LETTERS, VOL. 18, NO. 9, SEPTEMBER 2011

Thank you very much

Status
Not open for further replies.