cdma final year project
Dear adaligoran,
I'm a final year student and i'm doing my project regarding BER. Well i have done my coding using a MSSE codes and now i need to change the codes using a Rake Receiver can u help me..i just need to change the receiver part of the codes and i;m not sure how to do it..my dead line is very near..i really hope that you can help me out..below is the codes that i have for now using the MSSE receiver..i hope that u really can help me...please...
PG=8;
walsh=hadamard(PG);
walsh_code1=walsh(1,
;
num_iteration=10000;
for EbNo=0:10
total_error=0;
EbNoLinear=10^(EbNo/10);
for count=1:num_iteration
%generate and spread the data
msg1=sign(rand(1)-0.5);
spread_data1=walsh_code1*msg1;
tx_sig1=ifft(spread_data1);
tx_sig=tx_sig1.'
%generate noise
noise_amp=sqrt(1/(2*EbNoLinear));
noise=noise_amp*(randn(1,PG)+i*randn(1,PG));
%% Channel
chann=modified_jakes(PG); %rayleigh channel (PG times : matrix)
chan=chann
,1); % rayleigh channel (PG times 1 channel)
sig=conv(tx_sig,chan);
x=sig(1:8,1);
sig_chnl=x + noise'; %% Noise addition
%% Despread and detect signal
%% MMSE
C=walsh(1,
.';
ch=real(fft(chan));
chr=diag(ch);
S=chr*C;
out=(fft(sig_chnl));
variance =var(noise);
X=(S'*S + variance*(eye(1)))^-1;
MMSE=X*S'*out;
data=sign(real(MMSE));
error_vector = 0.5*abs(msg1-data(1,1));
total_error=error_vector+total_error;
end
BER(EbNo+1)=total_error/num_iteration;
end
BER
EbNo=0:10;
semilogy(EbNo,BER)