0001 function [ x ] = FBMC_OQAM_EqualizerMultiTapFullMMSE( z, C, L_e, Para )
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019
0020
0021
0022
0023
0024
0025
0026
0027
0028
0029
0030
0031
0032
0033
0034
0035
0036
0037 if mod(L_e,2)==0
0038 error('L_e should be odd')
0039 end
0040 M=Para.nSubcarriers/2;
0041
0042 [g, ~] = GeneratePrototypePhydyas(M, Para.kappa);
0043 g = g.*sqrt(1/M);
0044 g_m=zeros(2*M,2*M*Para.kappa);
0045 for k=0:2*M-1
0046 for m=0:2*M*Para.kappa-1
0047 g_m(k+1,m+1)=g(m+1).*exp(1j*2*pi*k/2/M*(m-(2*M*Para.kappa-1)/2));
0048 end
0049 end
0050 f_m=[zeros(2*M,1) g_m];
0051
0052 theta=ones(2*M,2*(Para.Ns));
0053 theta(2:2:end,1:2:end)=1j;
0054 theta(1:2:end,2:2:end)=1j;
0055 Para.Es_N0=10.^(Para.Es_N0_dB/10);
0056 N0=Para.Es./Para.Es_N0;
0057
0058 if Para.N_R==1 && Para.N_T==1
0059 C=squeeze(C);
0060 z=z(:,2*Para.PreambleLength+1:end).*theta;
0061 L=4*Para.kappa+ceil((length(C)-1)/M);
0062 alpha=2*Para.kappa+(L_e-1)/2;
0063 e=zeros(L+L_e-1,1);
0064 e(alpha+1)=1;
0065 G=zeros(L_e,(L_e-1+2*Para.kappa)*M);
0066 for index=1:L_e
0067 G(index,(index-1)*M+1:(index-1)*M+2*Para.kappa*M)=g_m(1,:);
0068 end
0069 R_w=N0*(G*G');
0070 x=zeros(2*M,2*Para.Ns);
0071 for m_0=Para.ActiveSubcarriers
0072 q_eq_m_0_m_0_plus1=downsample(conv(conv(g_m(mod(m_0+1-1,2*M)+1,:),C),f_m(m_0,:)),M);
0073 q_eq_m_0_m_0=downsample(conv(conv(g_m(m_0,:),C),f_m(m_0,:)),M);
0074 q_eq_m_0_m_0_moins1=downsample(conv(conv(g_m(mod(m_0-1-1,2*M)+1,:),C),f_m(m_0,:)),M);
0075
0076 Q_eq_m_0_m_0=toeplitz([q_eq_m_0_m_0(1);zeros(L_e-1,1)],[q_eq_m_0_m_0, zeros(1,L_e-1)]);
0077 Q_eq_m_0_m_0_moins1=toeplitz([q_eq_m_0_m_0_moins1(1);zeros(L_e-1,1)],[q_eq_m_0_m_0_moins1, zeros(1,L_e-1)]);
0078 Q_eq_m_0_m_0_plus1=toeplitz([q_eq_m_0_m_0_plus1(1);zeros(L_e-1,1)],[q_eq_m_0_m_0_plus1, zeros(1,L_e-1)]);
0079 R_Q=Q_eq_m_0_m_0*Q_eq_m_0_m_0'+Q_eq_m_0_m_0_plus1*Q_eq_m_0_m_0_plus1'+Q_eq_m_0_m_0_moins1*Q_eq_m_0_m_0_moins1';
0080
0081 p_transpose=e'*Q_eq_m_0_m_0'/(1/2*R_Q+1/Para.Es*R_w);
0082 x_m_0_l_0=conv(p_transpose,z(m_0,:));
0083 x(m_0,:)=x_m_0_l_0((L_e-1)/2+1:(L_e-1)/2+2*Para.Ns) ;
0084 end
0085 x=x.*conj(theta);
0086 else
0087 if Para.N_T>Para.N_R
0088 error('N_T>N_R')
0089 else
0090 error('Not yet implemented')
0091 end
0092
0093 end
0094
0095
0096
0097
0098 end