nxt_stat.m
上传用户:loeagle
上传日期:2013-03-02
资源大小:1236k
文件大小:0k
源码类别:

通讯编程文档

开发平台:

Matlab

  1. function [next_state,memory_contents]=nxt_stat(current_state,input,L,k)
  2. binary_state=deci2bin(current_state,k*(L-1));
  3. binary_input=deci2bin(input,k);
  4. next_state_binary=[binary_input,binary_state(1:(L-2)*k)];
  5. next_state=bin2deci(next_state_binary);
  6. memory_contents=[binary_input,binary_state];