Mimomatlab code Joint detection, how to do separate detection? wireless communicai

Status
Not open for further replies.

ardasheir

Newbie
Joined
Nov 7, 2011
Messages
1
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,297
I have done joint detection for MIMO. How do I make my codes separate detection?






N1=1000000; % number of iterations
for s = 0:SNR
s1=s+1;
% noise amplitude
noisefactor = (10^((-s)/20))*sqrt(2);

% creating channel coeffiecients
H_symbol = (randn(N1,4)+ j * randn(N1,4))/sqrt(2); %uncorrelated channel

% creating correlation matrix
H_symbol_corr = H_symbol * (sqrt(D)* U.');% correlated matrix

% creating random symbols
symbol = (sign(randn(2,N1)) + j * sign(randn(2,N1)))/sqrt(2);

% creating AWGN channel
noise = noisefactor*(randn(2,N1) + j*randn(2,N1))/sqrt(2);

%Check correlation
R_corr=(H_symbol_corr'*H_symbol_corr);

for n=1:N1
% reshape the first row of correlated matrix into 2x2 matrix
H_matrix = reshape(H_symbol_corr(n,,2,2);

% taking the symbol pair from random symbols generated
symbol_pair=symbol,n);

% taking the symbol pair from random symbols generated
noise_pair=noise,n);

% getting the recieved signal pair
r_signal_pair = (H_matrix*symbol_pair)+noise_pair;

if x1<=3
% received Signal
r_1 = r_signal_pair*ones(1,16);
elseif x1==5
r_1 = r_signal_pair*ones(1,64);
elseif x1==4
r_1 = r_signal_pair*ones(1,4);
end
% error signal
e_1 = (r_1-(H_matrix*sym_mat));

% finding minimum distance
dist_1=sum(e_1.*conj(e_1));
[C,I]=min(dist_1);

Estimated_sym= sym_mat,I);
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…