tmp_test.m
资源名称:MIMO-OFDM.rar [点击查看]
上传用户:look542
上传日期:2009-06-04
资源大小:784k
文件大小:1k
源码类别:
传真(Fax)编程
开发平台:
Matlab
- % mod_type = 3;
- % bit_to_mod = [1 1 1 0 0 0 0 1 1];
- % bit_to_mod = reshape(bit_to_mod ,mod_type,length(bit_to_mod)/mod_type);
- % sym = modu_sym(bit_to_mod );
- % %continue;
- % %break;
- % bit_out = demodu_sym(sym,mod_type);
- S = sqrt(13/6) * [0, 0, 1+j, 0, 0, 0, -1-j, 0, 0, 0, 1+j, 0, 0, 0, -1-j, 0, 0, 0, -1-j, 0, 0, 0, 1+j, 0, 0, 0, 0,0, 0, 0, -1-j, 0, 0, 0, -1-j, 0, 0, 0, 1+j, 0, 0, 0, 1+j, 0, 0, 0, 1+j, 0, 0, 0, 1+j, 0,0];
- S_tmp = [zeros(1,6) S zeros(1,5)];
- S_tmp2 = [S_tmp(33:64) S_tmp(1:32)];
- t1 = sqrt(64)*ifft(S_tmp2);
- t2 = [t1 t1 t1(1:32) t1(1)];
- win_t = [0.5 ones(1,159) 0.5];
- t = t2.*win_t;
- L = [1, 1, -1, -1, 1, 1, -1, 1, -1, 1, 1, 1, 1, 1, 1, -1, -1, 1, 1, -1, 1, -1, 1, 1, 1, 1, 0, 1, -1, -1, 1, 1, -1, 1, -1, 1, -1, -1, -1, -1, -1, 1, 1, -1, -1, 1, -1, 1, -1, 1, 1, 1, 1];
- L_tmp = [L(27:53) zeros(1,11) L(1:26)];
- T1 = sqrt(64)*ifft(L_tmp);
- T2 = [T1(33:64) T1 T1 T1(1)];
- win_T = [0.5 ones(1,159) 0.5];
- T = T2.*win_T;
- TRAINING = [t zeros(1,160)] + [zeros(1,160) T];