Run Length Encoding

Run Length Encoding - Loss less Coding Technique
1.1K Downloads
Updated 5 Jun 2014

View License

% rleenc - Run Length Encoding Algorithm
% rleenc - function performs run length encoding for binary input sequence.
% ins - input sequence
% enc - encoded output
%
% For example, x=randint(1,10,[0 1]);
% Will give you a random sequence
% having only zeros and ones.
% enc=rleenc(x);
%
% developed by Suraj Kamya
% contact me: kamyasuraj@yahoo.com

Cite As

Suraj Kamya (2024). Run Length Encoding (https://www.mathworks.com/matlabcentral/fileexchange/46865-run-length-encoding), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2013b
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.0.0.0