Standard logic to Manchester encoder

Version 1.0.0.0 (1.56 KB) by Robert
Converts a binary standard logic string to its manchester encoded equivalent.
1.9K Downloads
Updated 5 Mar 2009

View License

BIN2MANCHESTER(inputData) encodes binary data to its corresponding manchester binary sequence.

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

Syntax: encodedData = BIN2MANCHESTER(inputData)

Where:
inputData = string with binary values with the MSB at at the left-most position (index = 1)
encodedData = string with binary values which has twice the length of inputData with the MSB at the left-most position

Example:
>>encodedData = bin2manchester('1100')

encodedData =
01011010

Code is optimized for speed, user should ensure correct input.

Cite As

Robert (2026). Standard logic to Manchester encoder (https://www.mathworks.com/matlabcentral/fileexchange/23203-standard-logic-to-manchester-encoder), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2007b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Version Published Release Notes
1.0.0.0