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.

Using rayleighchan to obtain channel gains of fading Rayleigh channel

Status
Not open for further replies.

madlab88

Newbie level 3
Joined
Apr 1, 2011
Messages
3
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,320
Hi all.

I am trying to simulate a fading multipath Rayleigh channel and I need the channel gains for channel tracking of the OFDM system...

I was referring to this thread: https://www.edaboard.com/threads/179997/

So I tried this simulation. All parameters have been defined, fftleng is the fourier transform size, NumofSymbols is the number of OFDM symbols, cpleng is the cyclic prefix length. And this is the simple code I tried:

% Generate transmit signal
sf = randint(1,fftleng*NumofSymbols)*2-1;
s1 = reshape(sf,fftleng,NumofSymbols);
sf1 = ifft(s1);
st1 = [sf1(fftleng-cpleng+1:fftleng,:); sf1];
st = reshape(st1,1,[]);

% rayleigh channel
ch=rayleighchan(ts,fd,tau,pdb);

if (fd>0)
ch.StoreHistory = 1;
end

output=filter(ch,st);

n=1:NumSamples;
figure;
plot(n,ch.pathGains:),1))

However, when I plot the channel gains for the first multipath, what I obtain resembles more of noise rather than a fading channel...

Can someone please advise me on how to properly use the rayleighchan object to get the channel gains? I believe I should have the channel gains for each of the multipaths...

Also it will be great if someone can provide more explanations on the effects of the StoreHistory, StorePathGains and ResetBeforeFiltering. I couldn't really understand the Matlab help definition....

Thank you in advance.
 

Ahmed Alaa

Full Member level 5
Joined
Jul 22, 2009
Messages
317
Helped
61
Reputation
136
Reaction score
44
Trophy points
1,318
Location
Egypt
Activity points
2,968
Use the "channel visualization toolbox" to better visualize the channel.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top