int_state.m
资源名称:MIMO-OFDM.rar [点击查看]
上传用户:look542
上传日期:2009-06-04
资源大小:784k
文件大小:0k
源码类别:
传真(Fax)编程
开发平台:
Matlab
- function int_state = int_state( state )
- % Copyright 1996 Matthew C. Valenti
- % MPRG lab, Virginia Tech.
- % for academic use only
- % converts a row vector of m bits into a integer (base 10)
- [dummy, m] = size( state );
- for i = 1:m
- vect(i) = 2^(m-i);
- end
- int_state = state*vect';