bit2symbol.m
上传用户:cjx922
上传日期:2017-12-13
资源大小:205k
文件大小:0k
源码类别:

通讯编程

开发平台:

Matlab

  1. function [symbol_sequence]=bit2symbol(bit_sequence);
  2. %由bit序列symbol序列的转换
  3. global signal;
  4. switch signal.modulation_type
  5.     case 'BPSK'
  6.         symbol_sequence=bit_sequence;
  7.     case 'QPSK'
  8.         symbol_sequence=bit_sequence(1:signal.nr_of_symbols)+j*bit_sequence(signal.nr_of_symbols+1:signal.nr_of_bits);
  9.     otherwise
  10.         error(['Modulation type unknown:',signal.modulation_type])
  11. end