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.

TWO Tap Rayleigh Channel - Please see this code

Status
Not open for further replies.

barithegreat

Newbie level 6
Joined
Oct 7, 2008
Messages
13
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,379
TWO Tap Rayleigh Channel

Hi
Please see this code , I am confused how i added the two version of signal received from two Taps with one sample delay.Initially I have done IFFT of the signal with Four subcarriers.Please guide me.
x=transdata1;
taps=2;
p1=1;
p2=0.8;
gain1=sqrt(p1/2)*[randn(1,length(x)) + j*randn(1,length(x))];
gain2=sqrt(p2/2)*[randn(1,length(x)) + j*randn(1,length(x))];
channel_ifft=ifft([gain1,gain2],length(x));
n=1:length(x);
delay1=1;
for n=delay1+1:length(x) % Delay of one sample in second tap
x1(n)=x(n-delay1);
end
transdata=channel_ifft.*(x+x1); % multiplying channel with combined 2 taps signal here x= Tap1 signal and x1 Tap 2 signal

%------------------------Addition of noise -------------------------------
noise = 1/sqrt(2)*[randn(1,length(x)) + j*randn(1,length(x))]; % Noise
snr = [0:10]; % multiple Eb/N0 values
ps=mean(abs(x).^2); % Power of the transmitted signal
for i = 1:length(snr)
y = transdata + (sqrt(3*ps)*10^(-snr(i)/20))*noise; %Addition of Noise

%--------------------------Receiver ---------------------------------------
recdata=y;
rx0=recdata.*(1./(channel_ifft)); %Equilizatiom

Take care.
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top