No BSD License  

Highlights from
Encoded Data Simulator

from Encoded Data Simulator by Bill Higley
A group of m-files that simulate encoded data

NRZI2NRZ(in)
%NRZI2NRZ(in)
%   This function translates a NRZI sequence of bits into NRZ.

function out = NRZI2NRZ(in)

a = zeros(1,length(in));
a(1) = in(1);
for i=2:length(in)
    a(i) = xor(a(i-1),in(i));
end

out = a;

Contact us at files@mathworks.com