matlab将曼彻斯特序列解码为相应的二进制值

收录时间:2019-06-14
资源分类:Matlab 工具:MATLAB 7.5 (R2007b)

matlab将曼彻斯特序列解码为相应的二进制值

 

Manchester to standard logic decoder

MANCHESTER2BIN(inputData) decodes a manchester serial sequence to its corresponding binary value.

 

Decoding is done according to G.E. Thomas' convention (high-to-low '01' = '1', low-to-high '10'= 0), assuming LSB first transmission.

 

Syntax: decodedData = MANCHESTER2BIN(inputData)

 

Where:

inputData = string with binary values which length must be EVEN, with the MSB at at the left-most position (index = 1)

decodedData = string with binary values which length is half of inputData with the MSB at the left-most position

 

If the inputData sequence is not a valid manchester code MANCHESTER2BIN

will return an empty string.

 

     Example:

          >>decodedData = manchester2bin('01011010')

   

         decodedData =

         1100

文件下载列表
manchester2bin.zip (1.71KB)  
附件内容(只显示2中的1个)
manchester2bin.m  
更多

目前尚无评论

用户反馈   关于我们
Copyright (©) ZHIHUISHI.COM 2013 All Rights Reserved.
京ICP备14040384号