Commit ca8d9017 authored by Florian Kaltenberger's avatar Florian Kaltenberger

git-svn-id: http://svn.eurecom.fr/openair4G/trunk@4440 818b1a75-f10b-46b9-bf7c-635c3b92a50f
parent 4f528b38
...@@ -65,6 +65,12 @@ if(paramsinitialized) ...@@ -65,6 +65,12 @@ if(paramsinitialized)
Da2b_R=zeros(Niter*120,Nantb*301,Nmeas); Da2b_R=zeros(Niter*120,Nantb*301,Nmeas);
Db2a_R=zeros(Niter*120,Nanta*301,Nmeas); Db2a_R=zeros(Niter*120,Nanta*301,Nmeas);
chanestsA2B=zeros(301,Nantb,Nmeas);
tchanestsA2B=zeros(512,Nantb,Nmeas);
fchanestsA2B=zeros(512,Nantb,Nmeas);
chanestsB2A=zeros(301,Nantb,Nmeas);
tchanestsB2A=zeros(512,Nantb,Nmeas);
fchanestsB2A=zeros(512,Nantb,Nmeas);
for meas=1:Nmeas for meas=1:Nmeas
%% ------- Node A to B transmission ------- %% %% ------- Node A to B transmission ------- %%
...@@ -115,9 +121,9 @@ if(paramsinitialized) ...@@ -115,9 +121,9 @@ if(paramsinitialized)
end end
HB2A=conj(repmat(Db2a_T,Niter,1)).*repmat(Db2a_R(:,:,meas),1,Nantb); HB2A=conj(repmat(Db2a_T,Niter,1)).*repmat(Db2a_R(:,:,meas),1,Nantb);
phasesB2A=unwrap(angle(HB2A)); phasesB2A=unwrap(angle(HB2A));
#if(mean(var(phasesB2A))>0.5) %if(mean(var(phasesB2A))>0.5)
# disp('The phases of your estimates from B to A are a bit high (larger than 0.5 rad.), something is wrong.'); % disp('The phases of your estimates from B to A are a bit high (larger than 0.5 rad.), something is wrong.');
#end %end
if (chanest_full) if (chanest_full)
chanestsB2A(:,:,meas)=zeros(301,Nantb); chanestsB2A(:,:,meas)=zeros(301,Nantb);
......
...@@ -120,9 +120,9 @@ if(paramsinitialized) ...@@ -120,9 +120,9 @@ if(paramsinitialized)
%% ------- Do the B to A channel estimation ------- %% %% ------- Do the B to A channel estimation ------- %%
HB2A=conj(Db2a_T.*repmat(Db2a_R,1,Nantb)); HB2A=conj(Db2a_T.*repmat(Db2a_R,1,Nantb));
phasesB2A=unwrap(angle(HB2A)); phasesB2A=unwrap(angle(HB2A));
#if(mean(var(phasesB2A))>0.5) %if(mean(var(phasesB2A))>0.5)
# disp('The phases of your estimates from B to A are a bit high (larger than 0.5 rad.), something is wrong.'); % disp('The phases of your estimates from B to A are a bit high (larger than 0.5 rad.), something is wrong.');
#end %end
if (chanest_full) if (chanest_full)
chanestsB2A=zeros(301,Nantb); chanestsB2A=zeros(301,Nantb);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment