⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 bin_state.m

📁 用Matlab仿真turbocode的算法
💻 M
字号:
function bin_state=bin_state(int_state,m,form)%To convert an vector of integer(base 10) into a matrix; the i-th row is the binary form %of m bits for the i-th integer%form-->form of desired output(unipolar or bipolar)for j=1:length(int_state)   for i=m:-1:1       state(j,m-i+1)=fix(int_state(j)/ (2^(i-1)));       int_state(j)=int_state(j)-state(j,m-i+1)*2^(i-1);   endendswitch form    case 'unipolar'        bin_state=state;    otherwise        bin_state = -2*state+1;end

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -