QAM64Mod.m
上传用户:xinxin4122
上传日期:2013-04-03
资源大小:464k
文件大小:1k
- function mod_symbols=QAM64Mod(bits_in)
- full_len = length(bits_in);
- if rem(full_len,6)~=0
- error('Unimplemented modulation');
- end
- % generates 64QAM symbols
- m=1;
- for k=-7:2:7
- for l=-7:2:7
- table(m) = (k+j*l)/sqrt(42); % power normalization
- m=m+1;
- end;
- end;
- table=table([[ 0 1 3 2 7 6 4 5]...
- 8+[ 0 1 3 2 7 6 4 5]...
- 24+[ 0 1 3 2 7 6 4 5]...
- 16+[ 0 1 3 2 7 6 4 5]...
- 56+[ 0 1 3 2 7 6 4 5]...
- 48+[ 0 1 3 2 7 6 4 5]...
- 32+[ 0 1 3 2 7 6 4 5]...
- 40+[ 0 1 3 2 7 6 4 5]]+1);
-
- inp=reshape(bits_in,6,full_len/6);
-
- mod_symbols=table([32 16 8 4 2 1]*inp+1);