Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

multipath fading matlab code required

Status
Not open for further replies.

mukul

Junior Member level 3
Junior Member level 3
Joined
Jun 27, 2004
Messages
25
Helped
6
Reputation
12
Reaction score
6
Trophy points
1,283
Location
India
Activity points
145
if any body have multipath fading matlab code
and there category specification (A,B,C) for wireless channel
please send it urgently or suggest any link
 

hi mukul,

I seems to remember that Mathworks has simulink model of the communication system with the multipath fading channel. (not 100% sure)

As far as I remember it was in one of the webinar presented by mathworks engineer. (for some of the webinars you can download the code so if you are lucky and if I am not mistaken you can download the simulink model of the fading channel from there)

You can check at the www.mathworks.com at their archived webinars

Best Regards
dora
 

Hi,
Just use the model and you have more control over it. All you are supposed to do is add two phase shifted signals. Amplitude does not change much.
B R M
 

It uses deterministic channel modeling. in normal cases we get different multipaths from different directions and their amplitude is also different. the final signal we get is the sum of all the signals. the doppler spread of the signal also depends on the direction of arrival. for simulating the multipath u just need to multiply with the channel coefficients. it gives normalized values with a channel gain of 1.
function [chancoef]=flatfadechan(M,v,nobits,fs)
%M is the no of exp u want to add it depends on the no of multipaths reaching u . more the value of M better the frequency spectrum but it takes a lot of time to simulate so generally use around 10 to 20.
%v is the velocity, fs is sampling frequency, nobits is the no of samples of channel coefficient u want to generate
a=randn(1,M);
fdop=v*100/54;
k=cos(2*pi*rand(1,M));
theta=2*pi*rand(1,M);
time=0:1/fs:(nobits-1)/fs;
y=zeros(1,length(time));
for i=1:M
y=y+exp(j*(2*pi*fdop*time*k(i)+theta(i)));
end
chancoef=abs(y/sqrt(M));
return
 

    mukul

    Points: 2
    Helpful Answer Positive Rating
Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top