Code covered by the BSD License  

Highlights from
Differential Encoding/Decoding

from Differential Encoding/Decoding by Dr. Murtaza Khan
Basic Differential Encoding/Decoding of input vector of numeric values

diffencodevecTest.m
clc, close all , clear all


% v1=[]; %tested
% v1=[1] %tested
% v1=[1 5 7 1 10] %tested

v1=rand(1,7)

vo=diffencodevec(v1); %%Differential Encoding
v2=diffdecodevec(vo)  %%Differential Decoding


% % v1 is equal to v2, igonoring round-off error

% % % --------------------------------
% % % Author: Dr. Murtaza Khan
% % % Email : drkhanmurtaza@gmail.com
% % % --------------------------------

Contact us at files@mathworks.com